1. Creole
- Posted by andi49 Apr 09, 2014
- 1427 views
Hallo
is there a way to insert German Umlaut into Creole-Code?
{{{Ä }}} doesn't seem to work.
The Euphoria creole program changes the ampersand to &
even if it is in triple Angelbrackets.
Andreas
2. Re: Creole
- Posted by _tom (admin) Apr 09, 2014
- 1380 views
is there a way to insert German Umlaut into Creole-Code?
For special characters I start up Open/Libre Office. It has insert..special character in the menu. Just pick the special character from the chart and copy it into your text.
For example:
Ëë
This saves knowing the code that creates the special character.
{{{Ä }}} doesn't seem to work.
The Euphoria creole program changes the ampersand to &
even if it is in triple Angelbrackets.
Andreas
The triple parenthesis marks text that does not get processed by Creole at all.
_tom
3. Re: Creole
- Posted by BRyan Apr 09, 2014
- 1415 views
quote
Hallo
is there a way to insert German Umlaut into Creole-Code?
{{{Ä }}} doesn't seem to work.
The Euphoria creole program changes the ampersand to &
even if it is in triple Angelbrackets.
Andreas
/quote
Andreas
TO enter a German Umlaut look up its code on extended code chart on page.
IMPORTANT be sure your num lock key is on.
HOLD down the left ALT key while typing its code; and then release ALT key.
and code 142 will give you this Ä
Bernie
4. Re: Creole
- Posted by andi49 Apr 09, 2014
- 1349 views
[...]
The triple parenthesis marks text that does not get processed by Creole at all.
_tom
That's the problem, they get processed...
Andreas
5. Re: Creole
- Posted by DerekParnell (admin) Apr 09, 2014
- 1319 views
[...]
The triple parenthesis marks text that does not get processed by Creole at all.
_tom
That's the problem, they get processed...
Well, to be totally pedantic, its not "creole" that is changing the ampersand, it's the creole-to-html program that is using the creole library that is causing this problem. That program handles some special HTML codes and for those that it doesn't recognise, it just converts the leading '&' to '&' and let's the browser deal with it.
The creole library does not process any creole markup tags inside a triple braces set. Actually, it doesn't know anything about HTML mark up.
It's the job of any program using the library to convert the output of the creole markup (supplied from the library) to some other format, e.g. HTML tags, Latex script, Postscript, plain text,... whatever.
6. Re: Creole
- Posted by andi49 Apr 10, 2014
- 1325 views
Well, to be totally pedantic, its not "creole" that is changing the ampersand, it's the creole-to-html program that is using the creole library that is causing this problem. That program handles some special HTML codes and for those that it doesn't recognise, it just converts the leading '&' to '&' and let's the browser deal with it.
The creole library does not process any creole markup tags inside a triple braces set. Actually, it doesn't know anything about HTML mark up.
It's the job of any program using the library to convert the output of the creole markup (supplied from the library) to some other format, e.g. HTML tags, Latex script, Postscript, plain text,... whatever.
Thank you
Your answer is not pedantic, it's correct. Adding the Umlaut encoding to html_gen.e wasn't that hard ;)
At least for my usage i have now a creole (better: creolehtml) that works the way i want.
Thanks for showing the way.
Andreas
7. Re: Creole
- Posted by mattlewis (admin) Apr 10, 2014
- 1294 views
At least for my usage i have now a creole (better: creolehtml) that works the way i want.
That sounds like something we should have in the main code base. Would you share your patch, please?
Matt
8. Re: Creole
- Posted by andi49 Apr 10, 2014
- 1291 views
At least for my usage i have now a creole (better: creolehtml) that works the way i want.
That sounds like something we should have in the main code base. Would you share your patch, please?
Matt
Sure, but i'am not sure if this simple change works everywhere.
html_gen.e
constant kHTML = { { "&", "&" }, { "<", "<" }, { ">", ">" }, { {196}, "Ä" }, --Ae { {228}, "ä" }, --ae { {220}, "Ü" }, --Ue { {252}, "ü" }, --ue { {214}, "Ö" }, --Oe { {246}, "ö" }, --oe { {223}, "ß" }, -- ss $ }
At least it works for me.
Andreas
9. Re: Creole
- Posted by mattlewis (admin) Apr 10, 2014
- 1280 views
Sure, but i'am not sure if this simple change works everywhere.
html_gen.e
constant kHTML = { { "&", "&" }, { "<", "<" }, { ">", ">" }, { {196}, "Ä" }, --Ae { {228}, "ä" }, --ae { {220}, "Ü" }, --Ue { {252}, "ü" }, --ue { {214}, "Ö" }, --Oe { {246}, "ö" }, --oe { {223}, "ß" }, -- ss $ }
At least it works for me.
Yes, it seems very encoding specific. A better approach might be to find things that fit the pattern of ampersand, letters, semi-colon, and leave those alone.
I asked you for the patch partly because it would at least pinpoint the place to change this. I haven't looked at the creole repository (see Derek, I didn't just say creole!) in a long time, and this saves me (or anyone else looking at the code) the time of figuring out where this sort of thing might happen.
Matt