1. Creole

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

new topic     » topic index » view message » categorize

2. Re: Creole

andi49 said...

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.

andi49 said...

{{{Ä }}} 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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Creole

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

http://www.theasciicode.com.ar/extended-ascii-code/letter-a-umlaut-diaeresis-a-umlaut-uppercase-ascii-code-142.html

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Creole

_tom said...

[...]

The triple parenthesis marks text that does not get processed by Creole at all.

_tom

That's the problem, they get processed...

Andreas

new topic     » goto parent     » topic index » view message » categorize

5. Re: Creole

andi49 said...
_tom said...

[...]

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.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Creole

DerekParnell said...

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

new topic     » goto parent     » topic index » view message » categorize

7. Re: Creole

andi49 said...

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

new topic     » goto parent     » topic index » view message » categorize

8. Re: Creole

mattlewis said...
andi49 said...

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 = { 
	{ "&", "&" }, 
	{ "<", "&lt;" }, 
	{ ">", "&gt;" }, 
	{ {196}, "&Auml;" }, --Ae 
	{ {228}, "&auml;" }, --ae 
	{ {220}, "&Uuml;" }, --Ue 
	{ {252}, "&uuml;" }, --ue 
	{ {214}, "&Ouml;" }, --Oe 
	{ {246}, "&ouml;" }, --oe 
	{ {223}, "&szlig;" }, -- ss 
	$ 
} 

At least it works for me.

Andreas

new topic     » goto parent     » topic index » view message » categorize

9. Re: Creole

andi49 said...

Sure, but i'am not sure if this simple change works everywhere.

html_gen.e

constant kHTML = { 
	{ "&", "&amp;" }, 
	{ "<", "&lt;" }, 
	{ ">", "&gt;" }, 
	{ {196}, "&Auml;" }, --Ae 
	{ {228}, "&auml;" }, --ae 
	{ {220}, "&Uuml;" }, --Ue 
	{ {252}, "&uuml;" }, --ue 
	{ {214}, "&Ouml;" }, --Oe 
	{ {246}, "&ouml;" }, --oe 
	{ {223}, "&szlig;" }, -- 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. smile

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu