Pier syntax change

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Pier syntax change

Oleg Korsak
Hello. I'm trying to simply change PRItalicFormat markup to '~~' but it actually doesn't work with ~~ .

Also from the begining I had  ''this is italic''  test string on the Page. After I changed PRItalicFormats' markup from '''''''' to '~~' and then pressed "edit" for this page - there is ~~this is italic~~ in the TextArea. Seems to be correct... But when I'm pressing save button - there is not italic-styled string, but plain ~~this is italic~~ :/ Why so? How can I chage this markup?



_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Pier syntax change

Martial Boniou
Hi,

PRDocumentParser buildTextMatcher

It renews the list of associations between markups and classes. Print
this to see the actual associations:

PRDocumentParser textMatcher

Cheers,

--
Martial

On Sat, 2007-06-23 at 01:29 +0300, Oleg Korsak wrote:

> Hello. I'm trying to simply change PRItalicFormat markup to '~~' but
> it actually doesn't work with ~~ .
>
> Also from the begining I had  ''this is italic''  test string on the
> Page. After I changed PRItalicFormats' markup from '''''''' to '~~'
> and then pressed "edit" for this page - there is ~~this is italic~~ in
> the TextArea. Seems to be correct... But when I'm pressing save button
> - there is not italic-styled string, but plain ~~this is italic~~ :/
> Why so? How can I chage this markup?
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Pier syntax change

Lukas Renggli-2
As Martial pointed out you need to unregister the old matcher and  
register the new one in the dictionaries on the class side of  
PRDocumentParser.

Cheers,
Lukas

On 23.06.2007, at 10:58, Martial Boniou wrote:

> Hi,
>
> PRDocumentParser buildTextMatcher
>
> It renews the list of associations between markups and classes. Print
> this to see the actual associations:
>
> PRDocumentParser textMatcher
>
> Cheers,
>
> --
> Martial
>
> On Sat, 2007-06-23 at 01:29 +0300, Oleg Korsak wrote:
>> Hello. I'm trying to simply change PRItalicFormat markup to '~~' but
>> it actually doesn't work with ~~ .
>>
>> Also from the begining I had  ''this is italic''  test string on the
>> Page. After I changed PRItalicFormats' markup from '''''''' to '~~'
>> and then pressed "edit" for this page - there is ~~this is  
>> italic~~ in
>> the TextArea. Seems to be correct... But when I'm pressing save  
>> button
>> - there is not italic-styled string, but plain ~~this is italic~~ :/
>> Why so? How can I chage this markup?
>>
>> _______________________________________________
>> SmallWiki, Magritte, Pier and Related Tools ...
>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki