[pmwiki-users] Lithuanian - Names of Pages

Andrius Kulikauskas ms at ms.lt
Mon Dec 5 09:36:03 CST 2005


Patrick, Thank you!!!!

Now the AuthorGroup works for me!

I have another question...
Lithuanian is similar to English in that it is based on the Latin 
alphabet.  What's happening now is that when a phrase is used as a wiki 
word, then all of its letters are run together without any spaces, and 
also there is no capitalization of either the first word or the 
subsequent words.  Is capitalization possible with UTF-8?  It would be 
good to have a uniform resolution of the wiki words because otherwise 
we're getting lower case and upper case variation of the same words and 
phrases.

For our wiki I think the best behavior would be as in English that when 
a phrase is used as a wiki word, then the name for the associated page 
is given as capitalized words without any spaces in between, for 
example: NameOfPage  Currently, I'm getting  nameofpage  Nameofpage etc.

When you find time, I hope you might explain.
Thank you!

Andrius

Andrius Kulikauskas
Minčių sodas
http://www.ms.lt
ms at ms.lt
+370 (5) 264 5950
Patrick R. Michaud wrote:
> On Mon, Dec 05, 2005 at 04:48:37PM +0200, Andrius Kulikauskas wrote:
> 
>>Here's my config.php file, Andrius
> 
> 
> Some changes for your config.php:
> 
> Since you're using XLPage() to load the Lithuanian translations,
> your pages are actually utf-8 instead of iso-8859-13.  I'd
> remove the line with include_once('scripts/xlpage-iso-8859-13.php')
> altogether.  You should also move the XLPage() line to near the top
> of the config file (but after the <?php line) -- ideally the call
> to XLPage() should occur before any other settings in the file.
> 
> In order for the \x escapes to work, the strings must be
> in double quotes (") and not single quotes (').  Thus:
> 
>    $DefaultGroup = "Min\xc4\x8di\xc5\xb3Sodas";
>    $DefaultName  = "SveikiAtvyk\xc4\x99";
> 
>    $AuthorGroup = "\c5\a0viesuoliai";
> 
> See if those changes fix things for you.
> 
> Pm
> 
> 
> 
>>Patrick R. Michaud wrote:
>>
>>>On Mon, Dec 05, 2005 at 03:37:02PM +0200, Andrius Kulikauskas wrote:
>>>
>>>
>>>>Hi Patrick,
>>>>
>>>>I tried:
>>>>
>>>>$AuthorGroup = "\xc5\xa0viesuoliai";
>>>>
>>>>but it doesn't work.
>>>>
>>>>Also, if I go to the name of the group:
>>>>http://www.ms.lt/lt/index.php/Min%c4%8di%c5%b3Sodas
>>>>then it gives a Page Not Found error.
>>>
>>>
>>>Strange.  Could you perhaps send me a copy of your config.php to 
>>>look at?  Also, perhaps you could set $EnableDiag=1; in your 
>>>local/config.php ?
>>>
>>>Pm
>>>
>>>
>>>
>>>>Patrick R. Michaud wrote:
>>>>
>>>>
>>>>>On Sun, Dec 04, 2005 at 12:35:26AM +0200, Andrius Kulikauskas wrote:
>>>>>
>>>>>
>>>>>
>>>>>>* the sidebar would disappear when I went to a group, I think because 
>>>>>>the $Group variable was being called unsuccessfully.  I erased this but 
>>>>>>it continued to be a problem because our main section has special 
>>>>>>characters in its name.  So I gave the sidebar a group name with no 
>>>>>>special characters.
>>>>>
>>>>>
>>>>>That's odd, I think it really ought to work even if there are
>>>>>special characters in the group name.  Could be a bug somewhere.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>* upon going directly to index.php the variables $Group and $Name are 
>>>>>>not resolved, they just show up like that.  So I got around this by 
>>>>>>checking if there's no pathinfo for index.php and in that case 
>>>>>>redirecting to the URL for what I want to be the default page.
>>>>>
>>>>>
>>>>>Again, strange -- PmWiki is supposed to automatically redirect to
>>>>>$DefaultPage if none is given.  But having an explicit redirect 
>>>>>will work.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>The problem that I don't know how to get around is how to set the 
>>>>>>$AuthorGroup variable (default=Profiles) which I want the ~ prefix to 
>>>>>>send to a section whose name has special characters.  What's happening 
>>>>>>is that the "%" signs in the Unicode are getting dropped.  
>>>>>
>>>>>
>>>>>Try setting $AuthorGroup to the utf-8 value of the group, without 
>>>>>url encoding:
>>>>>
>>>>> $AuthorGroup = "\xc5\xa0viesuoliai";
>>>>>
>>>>>Pm
>>>>>
>>>>>
>>>>
>>>>
>>>
> 
>>   $1"); # '~italic~' # Markup("'*", "inline", "/'\\*(.*?)\\*'/", "$1"); #
>>   '*bold*' ## If you want to have to approve links to external sites before
>>   they ## are turned into links, uncomment the line below. See
>>   PmWiki.UrlApprovals. ## Also, setting $UnapprovedLinkCountMax limits the
>>   number of unapproved ## links that are allowed in a page (useful to
>>   control wikispam). # include_once('scripts/urlapprove.php'); #
>>   $UnapprovedLinkCountMax = 10; ## The following lines make additional
>>   editing buttons appear in the ## edit page for subheadings, lists, tables,
>>   etc. # $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]', #
>>   '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"'); # $GUIButtons['h3'] =
>>   array(402, '\\n!!! ', '\\n', '$[Subheading]', #
>>   '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"'); # $GUIButtons['indent'] =
>>   array(500, '\\n->', '\\n', '$[Indented text]', #
>>   '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"'); #
>>   $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]', #
>>   '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"'); # $GUIButtons['ol']
>>   = array(520, '\\n# ', '\\n', '$[Ordered list]', #
>>   '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"'); #
>>   $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]', #
>>   '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"'); #
>>   $GUIButtons['hr'] = array(540, '\\n----\\n', '', '', #
>>   '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"'); # $GUIButtons['table']
>>   = array(600, # '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || ||
>>   ||\\n|| || || ||\\n', '', '', #
>>   '$GUIButtonDirUrlFmt/table.gif"$[Table]"');
> 
> 
> 
> 





More information about the pmwiki-users mailing list