Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Berlin_Freeper

I checked the page. At first glance examination it does not seem to record anything. Even though the key part of the code is very short:

s = s.replace( /\u2018|\u2019|\u201A|\uFFFD/g, “’” );
s = s.replace( /\u201c|\u201d|\u201e/g, ‘”’ );
s = s.replace( /\u02C6/g, ‘^’ );
s = s.replace( /\u2039/g, ‘<’ );
s = s.replace( /\u203A/g, ‘>’ );
s = s.replace( /\u2013/g, ‘-’ );
s = s.replace( /\u2014/g, ‘—’ );
s = s.replace( /\u2026/g, ‘...’ );
s = s.replace( /\u00A9/g, ‘(c)’ );
s = s.replace( /\u00AE/g, ‘(r)’ );
s = s.replace( /\u2122/g, ‘TM’ );
s = s.replace( /\u00BC/g, ‘1/4’ );
s = s.replace( /\u00BD/g, ‘1/2’ );
s = s.replace( /\u00BE/g, ‘3/4’ );
s = s.replace(/[\u02DC|\u00A0]/g, “ “);

FR should be able to easily incorporate it into their code.


78 posted on 11/25/2015 11:07:42 PM PST by Krosan
[ Post Reply | Private Reply | To 77 | View Replies ]


To: Krosan; don-o; Jim Robinson
W3C Internationalization Checker
The html tag has no language attribute

Why should I use the language attribute in web pages?
For example, fonts or line spacing may need to change to accommodate different alphabets, style-generated quotation marks may need to be different by language, emphasis may need to be expressed in language dependent ways, etc.

Other typographic and layout features that are affected by language include line-breaking, justification, and case conversion, and more are coming as the specifications develop.

Here is a pic of the line break issue I currently have.
79 posted on 11/25/2015 11:25:08 PM PST by Berlin_Freeper
[ Post Reply | Private Reply | To 78 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson