|
Posted by laredotornado on April 14, 2008, 10:16 pm
Please log in for more thread options
Hi,
I have certain blocks of Spanish text, for example
=BFNecesita agregar una impresora o copiadora adicional a su forma
personalizada de orden? Presione aqu=ED.
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.
Thanks for any advice, - Dave
|
|
Posted by Michael Fesser on April 14, 2008, 11:29 pm
Please log in for more thread options
.oO(laredotornado)
>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.
With UTF-8 you could write all those chars literarily without any
character references.
Micha
|
|
Posted by Jukka K. Korpela on April 15, 2008, 5:47 pm
Please log in for more thread options Scripsit Michael Fesser:
> .oO(laredotornado)
>
>> 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.
>
> With UTF-8 you could write all those chars literarily without any
> character references.
And with iso-8859-1, the common default (more or less), if you don't
mind having to do something special with curly quotation marks.
And you can load a Spanish keyboard setting, or the US International
keyboard setting, or (best of all) the Finnish multinational keyboard
setting, in order to be able to type the characters conveniently (e.g.,
using the AltGr key).
Of course, many of the common resources for iso-8859-1 contains the
references you can use, if that's really what you want. Even the HTML
specifications have them.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
|
|
Posted by Dr J R Stockton on April 15, 2008, 3:15 pm
Please log in for more thread options In comp.infosystems.www.authoring.html message <a2cb0dce-8809-4123-bfd6-
4345d2a7a950@s13g2000prd.googlegroups.com>, Mon, 14 Apr 2008 19:16:05,
>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.
|
|
Posted by Scott Bryce on April 15, 2008, 10:03 pm
Please log in for more thread options Dr J R Stockton wrote:
> 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.
If you are going to go that route, write it in Perl and take advantage
of the HTML::Entities module. No need to write all those regexen.
|
| Similar Threads | Posted | | garbage characters are now on the site, although they weren't there originally | June 5, 2008, 4:16 pm |
| Page wrongly displays in Spanish only once | December 18, 2007, 1:13 pm |
| David Beckham Caught With Spanish Girl | October 9, 2004, 12:40 pm |
| Language codes / tags in Northern Ireland ? | May 18, 2007, 10:01 am |
| Chinese Characters in html (coding on a Mac OS X) | February 13, 2006, 10:48 pm |
| Rendering "special characters" and html validation | February 28, 2005, 3:16 am |
| Translating foreign characters to HTML code | June 25, 2005, 2:35 pm |
| strange html code to set the type of characters | December 7, 2005, 12:10 am |
| Country list with iso1366 codes and local country names | November 8, 2005, 6:51 am |
| UTF-8 and Latin-1 characters | July 11, 2004, 10:04 pm |
|