Menu

Underscore Parsing

Help
ben wirth
2006-04-17
2012-10-11
  • ben wirth

    ben wirth - 2006-04-17

    Is there any way for phpwiki to parse pages with an underscore (example: index.php/George_Washington) as "George Washington" and not "George_Washington" a la MediaWiki?

     
    • Reini Urban

      Reini Urban - 2006-04-17

      We can do that, but don't want to do that.
      We parse and represent every pagename asis, without any hidden magic a la mediawiki.

      space is space and underscore is underscore.

      To apply special mediawiki pagename rules please apply these before importing the pages into phpwiki.

      Doing this within phpwiki at runtime would imply conflicts in multiple representations, and would forbid common characters withon pagenames.

      Our legal pagenames are specified in stdlib.php, class WikiPageName ->isValid and ->_check:

      A starting SUBPAGE_SEPERATOR is forbidden.
      Multiple whitepsace is compressed to single whitespace,
      leading and trailing whitespace is stripped,

      Unfortunately certain DB backends enforce more restrictions, as cvs and file, where they must be legal filenames.

       
    • Reini Urban

      Reini Urban - 2006-05-02

      There's an easy way we dont want to go.

      We want you to fix the wrong pagenames before importing them, so that you have a 1:1 mapping of pagenames in url <=> database.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.