[Zope] Re: [Zope] Re: [Zope] structu red text and åäö Shall I put th is in the Collector?

Oliver Marx Oliver@tekk.dk
Fri, 27 Sep 2002 13:33:35 +0200


Peter Bengtsson wrote:
> 
>>
>> http://www.zope.org/Members/ajung/howto/Locale%20Support%20for%20Structured 
>>
>> %20Text/
> 
> 
> That's very good but I can't expect people to fiddle about with these 
> sort things just for my product.
> 
> Maybe the unix gurus will call me a doubleclickability-windows-geek now.
> 
> But thank you anyways. If I can't figure this out I'll have to leave it 
> and let people who can be bothered to get the ST feature based on your 
> how-to.
> At the moment I'm doing a big fat search and replace(s) on the text that 
> goes in and out of the structured_text() function. Bad for processing 
> since this will happen quite a lot.
> 
> Cheers,
> Peter
> 
>> --On Freitag, 27. September 2002 06:41 +0100 Peter Bengtsson 
>> <mail@peterbe.com> wrote:
>>
>>> Consider the following example code:
>>>
>>>  >>> from Products.PythonScripts.standard import structured_text
>>>  >>> print structured_text("Svenska *tacken*")
>>> <p>Svenska <em>tacken</em></p>
>>>
>>>  >>> print structured_text("Svenska *täcken*")
>>> <p>Svenska *täcken*</p>
>>>
>>>
>>> Shouldn't structured_text() be able to support these special characters?
>>> Is there a workaround except writing up a simple (but extra processing)
>>> hack?
>>>
>>> Shall I put it in the Collector?
>>>
>>> Regards, Peter
>>

-L is your friend and is the *only* reasonable way to do it.

start -L "se_SE" should give you svenska täcken.


\Oliver