Afficher un message
Vieux 15/04/2008, 20h15   #3
Dr J R Stockton
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: web site to translate spanish characters into corresponding html codes?

In comp.infosystems.www.authoring.html message <a2cb0dce-8809-4123-bfd6-
4345d2a7a950@s13g2000prd.googlegroups.com>, Mon, 14 Apr 2008 19:16:05,
laredotornado <laredotornado@zipmail.com> posted:

>I have certain blocks of Spanish text, for example
>
>¿Necesita agregar una impresora o copiadora adicional a su forma
>personalizada de orden? Presione aquí.
>
>Don't know if the backwards question mark and the accented "i" came
>through, but I was wondering if anyone knew of a site where I could
>cut and paste the above and it would spit back the corresponding html
>codes (e.g. {) for the appropriate Spanisn symbols.


I see the inverted question mark, but no accents.

One could easily be written, e.g. by yourself. A TEXTAREA for input, a
BUTTON, a TEXTAREA for output, and a series of RegExps, acting on the
content of the first area and writing to the second.

DEMO : ake a copy of my <URL:http://www.merlyn.demon.co.uk/js-
quick.htm>; put ¿Que? in F.X0, F.X1.value = F.X0.value.replace(/¿/g,
"{") in the textarea, press Eval, and read F.X1. Then copy F.X1
to the textarea, press HTML, and observe that it's not { that you
need (it's ¿).

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
  Réponse avec citation
 
Page generated in 0,05348 seconds with 9 queries