Search completed in 1.33 seconds.
Unicode property escapes - JavaScript
unicode property escapes regular expressions allows for matching characters based on their
unicode properties.
...for instance,
unicode property escapes can be used to match emojis, punctuations, letters (even letters from specific languages or scripts), etc.
... note: for
unicode property escapes to work, a regular expression must use the u flag which indicates a string must be considered as a series of
unicode code points.
...And 16 more matches
nsIScriptableUnicodeConverter
intl/uconv/idl/nsiscriptableuconv.idlscriptable this interface is a
unicode encoder for use by scripts.
... inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) implemented by: @mozilla.org/intl/scriptable
unicodeconverter.
... to create an instance, use: var converter = components.classes["@mozilla.org/intl/scriptable
unicodeconverter"] .createinstance(components.interfaces.nsiscriptable
unicodeconverter); method overview acstring convertfrom
unicode(in astring asrc); acstring finish(); astring convertto
unicode(in acstring asrc); astring convertfrombytearray([const,array,size_is(acount)] in octet adata, in unsigned long acount); void converttobytearray(in astring astring,[optional] out unsigned long alen,[array, size_is(alen),retval] out octet adata); nsiinputstream converttoinputstream(in astring astring); attributes attribute type description charset string current character set.
...And 7 more matches
unicode-bidi - CSS: Cascading Style Sheets
the
unicode-bidi css property, together with the direction property, determines how bidirectional text in a document is handled.
... for example, if a block of content contains both left-to-right and right-to-left text, the user-agent uses a complex
unicode algorithm to decide how to display the text.
... the
unicode-bidi property overrides this algorithm and allows the developer to control the text embedding.
...And 6 more matches
unicode - SVG: Scalable Vector Graphics
the
unicode attribute specifies one or more
unicode characters indicating the sequence of
unicode characters which corresponds to a glyph.
... if a character is provided, then this glyph corresponds to the given
unicode character.
... if multiple characters are provided, then this glyph corresponds to the given sequence of
unicode characters.
...And 5 more matches
unicode-range - CSS: Cascading Style Sheets
the
unicode-range css descriptor sets the specific range of characters to be used from a font defined by @font-face and made available for use on the current page.
... syntax /* <
unicode-range> values */
unicode-range: u+26; /* single codepoint */
unicode-range: u+0-7f;
unicode-range: u+0025-00ff; /* codepoint range */
unicode-range: u+4??; /* wildcard range */
unicode-range: u+0025-00ff, u+4??; /* multiple values */ values single codepoint a single
unicode character code point, for example u+26.
... codepoint range a range of
unicode code points.
...And 3 more matches
RegExp.prototype.unicode - JavaScript
the
unicode property indicates whether or not the "u" flag is used with a regular expression.
...
unicode is a read-only property of an individual regular expression instance.
... property attributes of regexp.prototype.
unicode writable no enumerable no configurable yes description the value of
unicode is a boolean and true if the "u" flag was used; otherwise false.
...And 3 more matches
unicode-bidi - SVG: Scalable Vector Graphics
the
unicode-bidi attribute specifies how the accumulation of the background image is managed.
... note: as a presentation attribute,
unicode-bidi can be used as a css property.
... see the css
unicode-bidi property for more information.
...And 3 more matches
Unicode - MDN Web Docs Glossary: Definitions of Web-related terms
unicode is a standard character set that numbers and defines characters from the world's different languages, writing systems, and symbols.
... before
unicode, it was difficult and error-prone to mix languages in the same data.
... the most common
unicode character encoding on the web is utf-8.
... learn more
unicode on wikipedia the
unicode standard: a technical introduction ...
FontFace.unicodeRange - Web APIs
the
unicoderange property of the fontface interface retrieves or sets the range of
unicode codepoints encompassing the font.
... it is equivalent to the
unicode-range descriptor.
... syntax var
unicoderangedescriptor = fontface.
unicoderange; fontface.
unicoderange =
unicoderangedescriptor; value a cssomstring containing a descriptor as it would appear in a style sheet's @font-face rule.
... specifications specification status comment css font loading module level 3the definition of '
unicoderange' in that specification.
The Unicode Bidirectional Text Algorithm - Developer guides
the
unicode® bidirectional algorithm (also known as the bidi algorithm) is part of the
unicode text standard that describes how the user agent should order characters while rendering
unicode text.
... overiding bidi using
unicode control characters
unicode provides a number of special control characters that make it possible to control directionality of ranges of text.
... initial
unicode bidi algorithm control characters character code point html entity markup equivalent description left-to-right isolate (lri) u+2066 ⁦ dir="ltr" sets the base direction to ltr, isolating the embedded content from the surrounding text right-to-left isolate (lri) u+2067 ⁧ dir="rtl" sets the base direction to rtl, isolating the embedded content from the surrounding text first strong isolate (fsi) u+2068 ⁨ dir="auto" isolates the content and sets the base direction according...
...pillover effects left-to-right override (lro) u+202d ‭ <bdo dir="ltr"> overrides the bidi algorithm, displaying the characters in memory order, from left to right right-to-left override (rlo) u+202e ‮ <bdo dir="rtl"> overrides the bidi algorithm and displays the embedded characters in reverse memory order, from right to left closing
unicode bidi algorithm control characters character code point html entity markup equivalent description pop directional formatting (pdf) u+202c ‬ closing whatever opening tag used the dir attribute used for rle or lre </bdo> used for rlo or lro pop directional isolate (pdi) u+2069 ⁩ closing whatever opening tag used...
unicode-range - SVG: Scalable Vector Graphics
the
unicode-range attribute defines the range of iso 10646 characters possibly covered by the glyphs in a font.
... specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the definition of '
unicode-range' in that specification.
Mozilla internal string guide
if you wish to make a copy of a string into a new character buffer (char16_t*/char*), the preferred way is to allocate it with one of the following methods: char16_t* tonew
unicode(nsastring&) - allocates a char16_t*buffer from an nsastring.
...see
unicode conversion for more details and for better ways that don't require you to manage the memory yourself.
... void processstring(const nsastring& str) { const nsastring& firstfive = substring(str, 0, 5); // from index 0, length 5 // firstfive is now a string representing the first 5 characters }
unicode conversion ns*cstring vs.
...And 21 more matches
Index
the apis js_newfunction, js_definefunction, js_compilefunction, and their
unicode equivalents return values of type jsfunction *.
...that is, each byte is treated as a
unicode character, and there is no way to pass in a string containing characters beyond u+00ff.
...js_compileucfunction is the
unicode version of the function.
...And 15 more matches
Index - Web APIs
804 datatransferitem.getasstring() api, datatransferitem, html dom, html drag and drop api, method, reference, drag and drop, getasstring the datatransferitem.getasstring() method invokes the given callback with the drag data item's string data as the argument if the item's kind is a plain
unicode string (i.e.
...the type is a
unicode string generally given by a mime type, although a mime type is not required.
...it also offers full
unicode support.
...And 11 more matches
Using the clipboard
we will use the interface nsisupportsstring which can be used to represent strings (specifically,
unicode strings).
...now that we have the object to copy, a transferring object needs to be created: var str = "text to copy"; var trans = transferable(sourcewindow); trans.adddataflavor("text/
unicode"); // we multiply the length of the string by 2, since it's stored in 2-byte utf-16 // format internally.
... trans.settransferdata("text/
unicode", supportsstring(str), str.length * 2); the first line gets the transferring component which implements nsitransferable.
...And 8 more matches
filter - CSS: Cascading Style Sheets
<image xlink:href="/files/3710/test_form_2.jpeg" filter="url(#svgblur)" width="212px" height="161px"/> </svg> </div> </td> <td><img alt="test_form_s.jpg" id="img4" class="internal default" src="/files/3711/test_form_2_s.jpg" style="width: 100%;" /></td> </tr> </tbody> </table> html { height:100%; } body { font: 14px/1.286 "lucida grande", "lucida sans
unicode", "dejavu sans", lucida, arial, helvetica, sans-serif; color: rgb(51, 51, 51); height:100%; overflow:hidden; } #img2 { width:100%; height:auto; -webkit-filter:blur(5px); -ms-filter:blur(5px); filter:blur(5px); } table.standard-table { border: 1px solid rgb(187, 187, 187); border-collapse: collapse; border-spacing: 0; margin: 0 0 1.286em; height: 100%; width: 85%; } tab...
...componenttransfer> </filter> <image xlink:href="/files/3708/test_form.jpg" filter="url(#brightness)" width="286px" height="217px" /> </svg><div></td> <td><img alt="test_form_s.jpg" id="img4" class="internal default" src="/files/3709/test_form_s.jpg" style="width: 100%;" /></td> </tr> </tbody> </table> html { height:100%; } body { font: 14px/1.286 "lucida grande","lucida sans
unicode","dejavu sans",lucida,arial,helvetica,sans-serif; color: rgb(51, 51, 51); height:100%; overflow:hidden; } #img2 { width:100%; height:auto; -moz-filter:brightness(2); -webkit-filter:brightness(2); -ms-filter:brightness(2); filter:brightness(2); } table.standard-table { border: 1px solid rgb(187, 187, 187); border-collapse: collapse; border-spacing: 0px; margin: 0px 0px 1.
...ponenttransfer> </filter> <image xlink:href="/files/3712/test_form_3.jpeg" filter="url(#contrast)" width="240px" height="151px" /> </svg><div></td> <td><img alt="test_form_s.jpg" id="img4" class="internal default" src="/files/3713/test_form_3_s.jpg" style="width: 100%;" /></td> </tr> </tbody> </table> html { height:100%; } body { font: 14px/1.286 "lucida grande","lucida sans
unicode","dejavu sans",lucida,arial,helvetica,sans-serif; color: rgb(51, 51, 51); height:100%; overflow:hidden; } #img2 { width:100%; height:auto; -moz-filter:contrast(200%); -webkit-filter:contrast(200%); -ms-filter:contrast(200%); filter:contrast(200%); } table.standard-table { border: 1px solid rgb(187, 187, 187); border-collapse: collapse; border-spacing: 0px; margin: 0px 0p...
...And 8 more matches
Intl - JavaScript
intl.locale() constructor for objects that represents a
unicode locale identifier.
... a single locale may be specified by either an intl.locale object or a string that is a
unicode bcp 47 locale identifier.
... multiple locales may be specified (and a best-supported locale determined by evaluating each of them in order and comparing against the locales supported by the implementation) by passing an array (or array-like object, with a length property and corresponding indexed elements) whose elements are either intl.locale objects or values that convert to
unicode bcp 47 locale identifier strings.
...And 7 more matches
StringView - Archive of obsolete content
� an arraybufferview in javascript) based upon the javascript arraybuffer interface to create a highly extensible library that anyone can extend by adding methods to the object stringview.prototype to create a collection of methods for such string-like objects (since now: stringviews) which work strictly on arrays of numbers rather than on creating new immutable javascript strings to work with
unicode encodings other than javascript's default utf-16 domstrings introduction as web applications become more and more powerful, adding features such as audio and video manipulation, access to raw data using websockets, and so forth, it has become clear that there are times when it would be helpful for javascript code to be able to quickly and easily manipulate raw binary data.
...awhole.subarray(nstartidx, nendidx) : awhole; } this.buffer = awhole.buffer; this.bufferview = awhole; this.rawdata = araw; object.freeze(this); } /* constructor's methods */ stringview.loadutf8charcode = function (achars, nidx) { /* the iso 10646 view of utf-8 considers valid codepoints encoded by 1-6 bytes, * while the
unicode view of utf-8 in 2003 has limited them to 1-4 bytes in order to * match utf-16's codepoints.
...it will be called with four arguments, expressing respectively: charcode a number expressing the
unicode representation of the actual character (codepoint).
...And 6 more matches
Regular expression syntax cheatsheet - JavaScript
\s matches a single white space character, including space, tab, form feed, line feed, and other
unicode spaces.
... \u{hhhh} or \u{hhhhh} (only when the u flag is set.) matches the character with the
unicode value u+hhhh or u+hhhhh (hexadecimal digits).
...however, in regular expressions with the
unicode flag, these will cause an invalid identity escape error.
...And 6 more matches
Text formatting - JavaScript
'\xa9' // "©"
unicode escape sequences the
unicode escape sequences require at least four hexadecimal digits following \u.
... '\u00a9' // "©"
unicode code point escapes new in ecmascript 2015.
... with
unicode code point escapes, any character can be escaped using hexadecimal numbers so that it is possible to use
unicode code points up to 0x10ffff.
...And 6 more matches
Lexical grammar - JavaScript
unicode format-control characters code point name abbreviation description u+200c zero width non-joiner <zwnj> placed between characters to prevent being connected into ligatures in certain languages (wikipedia).
... u+feff byte order mark <bom> used at the start of the script to mark it as
unicode and the text's byte order (wikipedia).
... \f u+0020 space <sp> normal space u+00a0 no-break space <nbsp> normal space, but no point at which a line may break others other
unicode space characters <usp> spaces in
unicode on wikipedia line terminators in addition to white space characters, line terminator characters are used to improve the readability of the source text.
...And 6 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
the text that you've read in is actually being represented internally as
unicode (utf-16).
... converterstream.default_replacement_character); var out = {}; converterstream.readstring(filestream.available(), out); var filecontents = out.value; converterstream.close(); filestream.close(); alert(filecontents); outputting text files fixme: not sure this example is relevant in an english context, maybe something from the snippets listing 16 shows how to take text internally represented as
unicode and output it to a file encoded using euc-jp (a japanese text encoding).
... here, the character string to be written, 変換テスト, is hard-coded directly into the javascript source using escaped
unicode entities.
...And 5 more matches
Drag and Drop JavaScript Wrapper - Archive of obsolete content
a flavor object has a name, which is a formatted like a mime type, such as 'text/
unicode'.
...var textobserver = { ondragstart: function (event, transferdata, action) { var htmltext = "<strong>cabbage</strong>"; var plaintext = "cabbage"; transferdata.data = new transferdata(); transferdata.data.adddataforflavour("text/html",htmltext); transferdata.data.adddataforflavour("text/
unicode",plaintext); } } here, an observer has been declared and stored in the variable textobserver.
...in this case above, the html flavour (text/html) comes first and then the text flavour (text/
unicode).
...And 5 more matches
Fonts for Mozilla 2.0's MathML engine
overview mathematical formulas make use of various symbols represented by specific
unicode characters.
... mozilla can display any of these symbols provided suitable
unicode fonts are installed.
...if no appropriate font is ultimately found for a given character, mozilla will instead display a box containing the hexadecimal representation of the
unicode code point for the character.
...And 5 more matches
Grammar and types - JavaScript
javascript is case-sensitive and uses the
unicode character set.
... you can use most of iso 8859-1 or
unicode letters such as å and ü in identifiers.
... (for more details, see this blog post.) you can also use the
unicode escape sequences as characters in identifiers.
...And 5 more matches
Reading textual data - Archive of obsolete content
earlier versions reading strings earlier versions of gecko do not provide easy ways to read
unicode data from a stream.
... you will have to manually read a block of data and convert it using nsiscriptable
unicodeconverter.
... for example: // first, get and initialize the converter var converter = components.classes["@mozilla.org/intl/scriptable
unicodeconverter"] .createinstance(components.interfaces.nsiscriptable
unicodeconverter); converter.charset = /* the character encoding you want, using utf-8 here */ "utf-8"; // now, read from the stream // this assumes istream is the stream you want to read from var scriptablestream = components.classes["@mozilla.org/scriptableinputstream;1"] .createinstance(components.interfaces.nsiscriptableinputstream); scriptablestream.init(istream); var chunk = scriptablestream.read(4096); var text = converter.convertto
unicode(chunk); however, you must be aware that this method will not work for character encodings that have e...
...And 4 more matches
Internationalized Domain Names (IDN) Support in Mozilla Browsers
rfc 3490 (internationalizing domain names in applications (idna)) defines characters used in idn to be drawn from
unicode standard 3.2.
... how mozilla browsers handle non-ascii domain names
unicode and nameprep when mozilla receives idn input from the user via the location bar or a request to process non-ascii host name links, it first turns them into
unicode, then normalizes the input string to make it conform to general uri requirement.
...arabic and hebrew), and check whether or not unassigned characters in the
unicode repertoire are used -- allowing them for "query strings" but disallowing them for "stored strings" such as the data input for domain name registration.
...And 4 more matches
SVG documentation index - SVG: Scalable Vector Graphics
it also may affect the direction in which characters are positioned if the
unicode-bidi property's value is either embed or bidi-override.
... 226 u1 deprecated, svg, svg attribute the u1 attribute specifies list of
unicode characters (refer to the description of the
unicode attribute of the <glyph> element for a description of how to express individual
unicode characters) and/or ranges of
unicode characters, which identify a set of possible first glyphs in a kerning pair.
... 227 u2 deprecated, svg, svg attribute the u2 attribute specifies list of
unicode characters (refer to the description of the
unicode attribute of the <glyph> element for a description of how to express individual
unicode characters) and/or ranges of
unicode characters, which identify a set of possible second glyphs in a kerning pair.
...And 4 more matches
Writing textual data - Archive of obsolete content
some character encodings (utf-8, utf-16, utf-32) can represent "all" characters (the full repertoire of
unicode) while others can only represent a subset of the full repertoire.
...you can also specify any
unicode character u+abcd directly as 0xabcd.
...they work by manually converting the string you want to write to a byte sequence using nsiscriptable
unicodeconverter, and writing that to the stream.
...And 3 more matches
JSAPI User Guide
the "uc" versions of these calls provide support for
unicode-encoded scripts.
...this function returns the pointer to an object's private data: pdata = js_getprivate(cx, obj); special topics
unicode to pass
unicode data between javascript and native code, represent the data in utf-16 in memory.
...these functions convert their char * arguments to 16-bit strings by zero-extending each 8-bit char to 16 bits—unless js_c_strings_are_utf8 is defined or js_setcstringsareutf8 has been called, in which case each char * string is interpreted as utf-8
unicode text.
...And 3 more matches
JSErrorReport
uclinebuf const char16_t *
unicode line buffer.
... ucmessage const char16_t * the default
unicode error message.
...uclinebuf is a pointer to a user-defined buffer into which js copies the
unicode (original) version of the offending line of script.
...And 3 more matches
String.prototype.charCodeAt() - JavaScript
the utf-16 code unit matches the
unicode code point for code points which can be represented in a single utf-16 code unit.
... if the
unicode code point cannot be represented in a single utf-16 code unit (because its value is greater than 0xffff) then the code unit returned will be the first part of a surrogate pair for the code point.
... description
unicode code points range from 0 to 1114111 (0x10ffff).
...And 3 more matches
String.prototype.normalize() - JavaScript
the normalize() method returns the
unicode normalization form of the string.
... syntax str.normalize([form]) parameters form optional one of "nfc", "nfd", "nfkc", or "nfkd", specifying the
unicode normalization form.
... return value a string containing the
unicode normalization form of the given string.
...And 3 more matches
Documentation for BiDi Mozilla - Archive of obsolete content
overview of bidi processing bidi text is reordered according to the
unicode bidi algorithm (uba).
... the implementation is based on ibm's international components for
unicode (icu), which was chosen after comparing and testing the available open-source implementations.
...examples of this are in nstextframe::painttextslowly; nstextframe::paint
unicodetext when a selection is displayed; nstextframe::getposition; nstextframe::getpointfromoffset.
...And 2 more matches
Python binding for NSS
strings may be python str objects or python
unicode objects.
... if a python
unicode object is passed to a nss/nspr function it will be encoded as utf-8 first before being passed to nss/nspr.
...a single code base supports both py2 (minimum version 2.7) and py3 when built for py2: text will be a
unicode object binary data will be a str object ints will be python long object when built for py3: text will be a str object binary data will be a bytes object ints will be a python int object all pure python tests and examples have been ported to py3 syntax but should continue to run under py2.
...And 2 more matches
text-transform - CSS: Cascading Style Sheets
a letter is defined as a character that is part of
unicode's letter or number general categories ; thus, any punctuation marks or symbols at the beginning of a word are ignored.
...the keyword target the first letter, that is the first
unicode character part of the letter or number general category.
...the keyword target the first letter, that is the first
unicode character part of the letter or number general category.
...And 2 more matches
Regular expressions - JavaScript
unicode property escapes distinguish based on
unicode character properties, for example, upper- and lower-case letters, math symbols, and punctuation.
... corresponding article \, ., \cx, \d, \d, \f, \n, \r, \s, \s, \t, \v, \w, \w, \0, \xhh, \uhhhh, \uhhhhh, [\b] character classes ^, $, x(?=y), x(?!y), (?<=y)x, (?<!y)x, \b, \b assertions (x), (?:x), (?<name>x), x|y, [xyz], [^xyz], \number groups and ranges *, +, ?, x{n}, x{n,}, x{n,m} quantifiers \p{
unicodeproperty}, \p{
unicodeproperty}
unicode property escapes note: a larger cheatsheet is also available (only aggregating parts of those individual articles).
... regexp.prototype.dotall u "
unicode"; treat a pattern as a sequence of
unicode code points.
...And 2 more matches
Intl.Collator() constructor - JavaScript
the following
unicode extension keys are allowed: co variant collations for certain locales.
...this option can be set through an options property or through a
unicode extension key; if both are provided, the options property takes precedence.
...this option can be set through an options property or through a
unicode extension key; if both are provided, the options property takes precedence.
...And 2 more matches
RegExp - JavaScript
regexp.prototype.
unicode whether or not
unicode features are enabled.
... regular expression and
unicode characters \w and \w only matches ascii based characters; for example, a to z, a to z, 0 to 9, and _.
... to match characters from other languages such as cyrillic or hebrew, use \uhhhh, where hhhh is the character's
unicode value in hexadecimal.
...And 2 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
when the file is read in, its contents are converted from utf-8 to
unicode.
...upon writing, the text is converted from
unicode to utf-8.
... createinstance(components.interfaces.nsifileoutputstream); stream.init(afile, 0x02 | 0x08 | 0x20, 0600, 0); // convert to utf-8 var converter = components.classes["@mozilla.org/intl/scriptable
unicodeconverter"].
... createinstance(components.interfaces.nsiscriptable
unicodeconverter); converter.charset = "utf-8"; var converteddata = converter.convertfrom
unicode(adata); converteddata += converter.finish(); // write and close stream stream.write(converteddata, converteddata.length); if (stream instanceof components.interfaces.nsisafeoutputstream) { stream.finish(); } else { stream.close(); } }, createmenu method this event handler is called when the session store submenu opens.
JS_GetLocaleCallbacks
callback functions struct jslocalecallbacks { jslocaletouppercase localetouppercase; jslocaletolowercase localetolowercase; jslocalecompare localecompare; // not used #if expose_intl_api jslocaleto
unicode localeto
unicode; }; typedef bool (* jslocaletouppercase)(jscontext *cx, js::handlestring src, js::mutablehandlevalue rval); typedef bool (* jslocaletolowercase)(jscontext *cx, js::handlestring src, js::mutablehandlevalue rval); typedef bool (* jslocalecompare)(jscontext *cx, js::handlestring src1, js::handlestring src2, js::mutablehandlevalue rval); typedef bool (* j...
...slocaleto
unicode)(jscontext *cx, const char *src, js::mutablehandlevalue rval); type description jslocaletouppercase implementation of string.prototype.tolocaleuppercase() function.
... jslocaleto
unicode convert locale specific string to
unicode string.
...see also mxr id search for js_getlocalecallbacks mxr id search for js_setlocalecallbacks mxr id search for jslocalecallbacks mxr id search for jslocaletouppercase mxr id search for jslocaletolowercase mxr id search for jslocalecompare mxr id search for jslocaleto
unicode ...
XPCOM Stream Guide
a note about
unicode strings versus nsiinputstream nsiinputstream and nsioutputstream work with 8-bit characters.
... var converter = components.classes["@mozilla.org/intl/scriptable
unicodeconverter"] .createinstance(components.interfaces.nsiscriptable
unicodeconverter); converter.charset = "utf-8"; var stream = converter.converttoinputstream(string); javascript modules are your friends there are several useful javascript modules at your disposal.
... nsbinaryinputstream @mozilla.org/binaryinputstream;1 nsiobjectinputstream (inherits from nsibinaryinputstream) converter convert
unicode characters from an underlying stream.
... nsbinaryoutputstream @mozilla.org/binaryoutputstream;1 nsiobjectoutputstream (inherits from nsibinaryoutputstream) converter write to an underlying stream with automatic conversion of
unicode characters.
nsIWindowsRegKey
readstringvalue() this method reads the string contents of the named value as a
unicode string.
... return value the string contents of the named value as a
unicode string.
...javascript callers should take care with the value passed to this method since it will be truncated from a js string (
unicode) to a iso-latin-1 string.
... writestringvalue() this method writes the
unicode string contents of the named value.
WindowOrWorkerGlobalScope.btoa() - Web APIs
see "
unicode strings" below for more detail.
... example const encodeddata = window.btoa('hello, world'); // encode a string const decodeddata = window.atob(encodeddata); // decode the string
unicode strings the btoa() function takes a javascript string as a parameter.
... containing characters that occupy more than one byte, you will get an error, because this is not considered binary data: const ok = "a"; console.log(ok.codepointat(0).tostring(16)); // 61: occupies < 1 byte const notok = "✓" console.log(notok.codepointat(0).tostring(16)); // 2713: occupies > 1 byte console.log(btoa(ok)); // yq== console.log(btoa(notok)); // error if you need to encode
unicode text as ascii using btoa(), one option is to convert the string such that each 16-bit unit occupies only one byte.
... for example: // convert a
unicode string to a string in which // each 16-bit unit occupies only one byte function tobinary(string) { const codeunits = new uint16array(string.length); for (let i = 0; i < codeunits.length; i++) { codeunits[i] = string.charcodeat(i); } return string.fromcharcode(...new uint8array(codeunits.buffer)); } // a string that contains characters occupying > 1 byte const mystring = "☸☹☺☻☼☾☿"; const converted = tobinary(mystring); const encoded = btoa(converted); console.log(encoded); // ocy5jjomoyy8jj4mpyy= if you do this, of course you'll have to reverse the conversion on the decoded string: function frombinary(binary) { const bytes = new uint8array(binary.length); for (let i = 0; i < bytes.length; i++) { bytes[i] = b...
<string> - CSS: Cascading Style Sheets
syntax the <string> data type is composed of any number of
unicode characters surrounded by either double (") or single (') quotes.
...all characters can also be represented with their respective
unicode code points in hexadecimal, in which case they are preceded by a backslash (\).
... recommendation explicit definition; allows 6-digit
unicode escaped characters.
... recommendation implicit definition; allows 4-digit
unicode escaped characters.
Developer guides
localizations and character encodings browsers process text as
unicode internally.
...the html specification recommends the use of the utf-8 encoding (which can represent all of
unicode), and regardless of the encoding used requires web content to declare that encoding.
...
unicode bidirectional text algorithm (bidi) the
unicode® bidi algorithm is part of the
unicode text standard.
... it describes how the browser should order characters while rendering
unicode text.
Character classes - JavaScript
\s matches a single white space character, including space, tab, form feed, line feed, and other
unicode spaces.
... \u{hhhh} or \u{hhhhh} (only when the u flag is set.) matches the character with the
unicode value u+hhhh or u+hhhhh (hexadecimal digits).
...do not start matching in the middle of a word) // [aa] indicates the letter a or a // \w+ indicates any character *from the latin alphabet*, multiple times console.table(aliceexcerpt.match(regexpwordstartingwitha)); // ['ada', 'and', 'at', 'all'] looking for a word (from
unicode characters) instead of the latin alphabet, we can use a range of
unicode characters to identify a word (thus being able to deal with text in other languages like russian or arabic).
... the "basic multilingual plane" of
unicode contains most of the characters used around the world and we can use character classes and ranges to match words written with those characters.
Intl.Locale - JavaScript
the intl.locale object is a standard built-in property of the intl object that represents a
unicode locale identifier.
... description the intl.locale object was created to allow for easier manipulation of
unicode locales.
...
unicode represents locales with a string, called a locale identifier.
... traditionally, the intl api used strings to represent locales, just as
unicode does.
JSON.stringify() - JavaScript
but they could not appear literally in similar context in javascript text, only using
unicode escapes as \u2028 and \u2029.
... replace(/\u2029/g, '\\u2029'); } var s = { a: string.fromcharcode(0x2028), b: string.fromcharcode(0x2029) }; try { eval('(' + json.stringify(s) + ')'); } catch (e) { console.log(e); // "syntaxerror: unterminated string literal" } // no need for a catch eval('(' + jsfriendlyjsonstringify(s) + ')'); // console.log in firefox unescapes the
unicode if // logged to console, so we use alert alert(jsfriendlyjsonstringify(s)); // {"a":"\u2028","b":"\u2029"} note: properties of non-array objects are not guaranteed to be stringified in any particular order.
...aved in localstorage in json object again var restoredsession = json.parse(localstorage.getitem('session')); // now restoredsession variable contains the object that was saved // in localstorage console.log(restoredsession); well-formed json.stringify() engines implementing the well-formed json.stringify specification will stringify lone surrogates, any code point from u+d800 to u+dfff, using
unicode escape sequences rather than literally.
... json.stringify("\ud800"); // '"�"' but with this change json.stringify represents lone surrogates using json escape sequences that can be encoded in valid utf-8 or utf-16: json.stringify("\ud800"); // '"\\ud800"' this change should be backwards-compatible as long as you pass the result of json.stringify to apis such as json.parse that will accept any valid json text, because they will treat
unicode escapes of lone surrogates as identical to the lone surrogates themselves.
String - JavaScript
console.log(eval(s2.valueof())) // returns the number 4 escape notation special characters can be encoded using escape notation: code output \xxx (where xxx is 1–3 octal digits; range of 0–377) iso-8859-1 character /
unicode code point between u+0000 and u+00ff \' single quote \" double quote \\ backslash \n new line \r carriage return \v vertical tab \t tab \b backspace \f form feed \uxxxx (where xxxx is 4 hex digits; range of 0x0000–0xffff) utf-16 code unit /
unicode code point between u+0000 an...
...\u{xxxxxx} (where x…xxxxxx is 1–6 hex digits; range of 0x0–0x10ffff) utf-32 code unit /
unicode code point between u+0000 and u+10ffff \xxx (where xx is 2 hex digits; range of 0x00–0xff) iso-8859-1 character /
unicode code point between u+0000 and u+00ff long literal strings sometimes, your code will include strings which are very long.
... static methods string.fromcharcode(num1 [, ...[, numn]]) returns a string created by using the specified sequence of
unicode values.
... string.prototype.normalize([form]) returns the
unicode normalization form of the calling string value.
u1 - SVG: Scalable Vector Graphics
the u1 attribute specifies list of
unicode characters (refer to the description of the
unicode attribute of the <glyph> element for a description of how to express individual
unicode characters) and/or ranges of
unicode characters, which identify a set of possible first glyphs in a kerning pair.
... if a given
unicode character within the set has multiple corresponding <glyph> elements (i.e., there are multiple <glyph> elements with the same
unicode attribute value but different glyph-name values), then all such glyphs are included in the set.
... comma is the separator character; thus, to kern a comma, specify the comma as part of a range of
unicode characters or as a glyph name using the g1 attribute.
... two elements are using this attribute: <hkern> and <vkern> context notes value [ <character> | <urange> ]# default value none animatable no [ <character> | <urange> ]# this value indicates a comma-separated sequence of
unicode characters and/or ranges of
unicode characters, which identify a set of possible first glyphs in a kerning pair.
u2 - SVG: Scalable Vector Graphics
the u2 attribute specifies list of
unicode characters (refer to the description of the
unicode attribute of the <glyph> element for a description of how to express individual
unicode characters) and/or ranges of
unicode characters, which identify a set of possible second glyphs in a kerning pair.
... if a given
unicode character within the set has multiple corresponding <glyph> elements (i.e., there are multiple <glyph> elements with the same
unicode attribute value but different glyph-name values), then all such glyphs are included in the set.
... comma is the separator character; thus, to kern a comma, specify the comma as part of a range of
unicode characters or as a glyph name using the g2 attribute.
... two elements are using this attribute: <hkern> and <vkern> context notes value [ <character> | <urange> ]# default value none animatable no [ <character> | <urange> ]# this value indicates a comma-separated sequence of
unicode characters and/or ranges of
unicode characters, which identify a set of possible second glyphs in a kerning pair.
SVG fonts - SVG: Scalable Vector Graphics
-family="super sans" font-weight="bold" font-style="normal" units-per-em="1000" cap-height="600" x-height="400" ascent="700" descent="300" alphabetic="0" mathematical="350" ideographic="400" hanging="500"> <font-face-src> <font-face-name name="super sans bold"/> </font-face-src> </font-face> <missing-glyph><path d="m0,0h200v200h-200z"/></missing-glyph> <glyph
unicode="!" horiz-adv-x="300"><!-- outline of exclam.
...glyph --></glyph> <glyph
unicode="@"><!-- outline of @ glyph --></glyph> <!-- more glyphs --> </font> we start with the <font> element.
...the most important attribute is
unicode.
... it defines the
unicode codepoint represented by this glyph.
Preferences - Archive of obsolete content
nsisupportsstring used to handle
unicode strings in preferences.
... nsisupportsstring as noted above, this is used to handle
unicode strings in preferences.
... example: // prefs is an nsiprefbranch // example 1: getting
unicode value var value = prefs.getcomplexvalue("preference.with.non.ascii.value", components.interfaces.nsisupportsstring).data; // example 2: setting
unicode value var str = components.classes["@mozilla.org/supports-string;1"] .createinstance(components.interfaces.nsisupportsstring); str.data = "some non-ascii text"; prefs.setcomplexvalue("preference.with.non.ascii.value", components.interfaces.nsisupportsstring, str); nsipreflocalizedstring another complex type supported by mozilla is nsipreflocalizedstring.
How to convert an overlay extension to restartless - Archive of obsolete content
turn; case "number": branch.setintpref(prefname,prefvalue); return; case "boolean": branch.setboolpref(prefname,prefvalue); return; } } function setdefaultpref(prefname,prefvalue) { var defaultbranch = services.prefs.getdefaultbranch(null); setgenericpref(defaultbranch,prefname,prefvalue); } function getucharpref(prefname,branch) //
unicode getcharpref { branch = branch ?
... branch : services.prefs; return branch.getcomplexvalue(prefname, components.interfaces.nsisupportsstring).data; } function setucharpref(prefname,text,branch) //
unicode setcharpref { var string = components.classes["@mozilla.org/supports-string;1"] .createinstance(components.interfaces.nsisupportsstring); string.data = text; branch = branch ?
...unfortunately, the built in apis for dealing with preferences are missing this basic stuff, and its plain text handling doesn't work with
unicode properly.
Drag and Drop Example - Archive of obsolete content
var listobserver = { ondragstart: function (event, transferdata, action) { var txt = event.target.getattribute("elem"); transferdata.data = new transferdata(); transferdata.data.adddataforflavour("text/
unicode", txt); } } one function has been defined, ondragstart, which will be called by the nsdraganddrop object when necessary.
...var boardobserver = { getsupportedflavours : function () { var flavours = new flavourset(); flavours.appendflavour("text/
unicode"); return flavours; }, ondragover: function (event, flavour, session) {}, ondrop: function (event, dropdata, session) { if (dropdata.data != "") { var elem = document.createelement(dropdata.data); event.target.appendchild(elem); elem.setattribute("left", "" + event.pagex); elem.setattribute("top", "" + event.pagey); elem.setattribute("label", dropdata...
...artdrag(event, listobserver)"/> <button label="text box" elem="textbox" ondraggesture="nsdraganddrop.startdrag(event, listobserver)"/> </vbox> </window> var listobserver = { ondragstart: function (event, transferdata, action) { var txt = event.target.getattribute("elem"); transferdata.data = new transferdata(); transferdata.data.adddataforflavour("text/
unicode", txt); } }; var boardobserver = { getsupportedflavours : function () { var flavours = new flavourset(); flavours.appendflavour("text/
unicode"); return flavours; }, ondragover: function (event, flavour, session) {}, ondrop: function (event, dropdata, session) { if (dropdata.data != "") { var elem = document.createelement(dropdata.data); event.target.append...
LiveConnect Overview - Archive of obsolete content
for example, you can pass the string "h" to the character constructor as follows: var c = new java.lang.character("h"); in javascript 1.3 and earlier, you must pass such methods an integer which corresponds to the
unicode value of the character.
...string values when you pass javascript string types as parameters to java methods, java converts the values according to the rules described in the following table: java parameter type conversion rules java.lang.string java.lang.object javascript 1.4: a javascript string is converted to an instance of java.lang.string with a
unicode value.
... char javascript 1.4: one-character strings are converted to
unicode characters.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
27 base64 advanced, base64, javascript, typed arrays, uri, url,
unicode problem, atob(), btoa() base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ascii string format by translating it into a radix-64 representation.
...utf-8 is backward-compatible with ascii and can represent any standard
unicode character.
... 475
unicode infrastructure
unicode is a standard character set that numbers and defines characters from the world's different languages, writing systems, and symbols.
Localization content best practices
for example, use the single
unicode …, and not three dots.
... use
unicode characters over their ascii counterparts when possible strings should use directional quotation marks when possible.
... if you need a trailing white space in a string, use the
unicode character \u0020 (that's usually a bad sign, you're concatenating it to another string).
Mozilla Web Developer FAQ
if you use downloadable fonts, please make sure the fonts have the right
unicode mappings and the content uses the right
unicode characters.
...characters in html 4 and xml documents are
unicode characters (even if the document has been encoded using a legacy encoding for transfer)—not font glyph indexes.
... likewise, to use a dingbat, you should use the appropriate
unicode character instead of trying to apply a dingbat font to an ascii character.
XPCOM array guide
both
unicode strings and utf8-encoded strings are supported.
...the implementation of the string enumerator interfaces for nstarray<nsstring> and nstarray<nscstring> supports conversion between utf8 and
unicode, and can be queryinterface'd back and forth between nsistringenumerator and nsiutf8stringenumerator.
...the implementations will properly convert back and forth between utf8 and
unicode.
Index
446 nsiconverterinputstream interfaces, interfaces:scriptable, streams,
unicode, xpcom, xpcom api reference, xpcom interface reference implemented by: @mozilla.org/intl/converter-input-stream;1.
... 887 nsiscriptableunescapehtml interfaces, interfaces:scriptable, xpcom, xpcom interface reference implemented by: @mozilla.org/feed-unescapehtml;1 as a service: 888 nsiscriptable
unicodeconverter interfaces, interfaces:scriptable,
unicode, xpcom, xpcom interface reference this legacy api represents binary data using the lower haft of each 16-bit code unit in a javascript string.
...this class is typically used to represent
unicode character arrays.
nsICryptoHash
since hash functions are computed over bytes, you will first need to convert the string to a series of bytes using nsiscriptable
unicodeconverter and a
unicode encoding that you specify.
... var str = "hello world"; var converter = components.classes["@mozilla.org/intl/scriptable
unicodeconverter"].
... createinstance(components.interfaces.nsiscriptable
unicodeconverter); // we use utf-8 here, you can choose other encodings.
nsIIDNService
ts.interfaces.nsiidnservice); method overview autf8string convertacetoutf8(in acstring input); autf8string converttodisplayidn(in autf8string input, out boolean isascii); acstring convertutf8toace(in autf8string input); boolean isace(in acstring input); autf8string normalize(in autf8string input); methods convertacetoutf8() converts an ace (ascii compatible encoding) hostname into
unicode format, returning a utf-8 format string.
... this combines two operations: running the rfc 3490 "to
unicode" operation on the original string, then converting the resulting
unicode string into utf-8 format.
...normalize() performs the
unicode normalization needed for hostnames in idn.
KeyboardEvent.charCode - Web APIs
the charcode read-only property of the keyboardevent interface returns the
unicode value of a character key pressed during a keypress event.
... syntax var code = event.charcode; return value a number that represents the
unicode value of the character key that was pressed.
...ything into the input box below to log a <code>charcode</code>.</p> <input type="text" /> <p id="log"></p> javascript let input = document.queryselector('input'); let log = document.queryselector('#log'); input.addeventlistener('keypress', function(e) { log.innertext = `key pressed: ${string.fromcharcode(e.charcode)}\ncharcode: ${e.charcode}`; }); result notes in a keypress event, the
unicode value of the key pressed is stored in either the keycode or charcode property, but never both.
KeyboardEvent - Web APIs
if the key corresponds to a printable character, this value is a non-empty
unicode string containing that character.
... keyboardevent.charcode read only returns a number representing the
unicode reference number of the key; this attribute is used only by the keypress event.
... for keys whose char attribute contains multiple characters, this is the
unicode value of the first character in that attribute.
USVString - Web APIs
usvstring corresponds to the set of all possible sequences of
unicode scalar values.
... usvstring maps to a string when returned in javascript; it's generally only used for apis that perform text processing and need a string of
unicode scalar values to operate on.
...unpaired surrogate codepoints present in usvstring are converted by the browser to
unicode 'replacement character' u+fffd, (�).
all - CSS: Cascading Style Sheets
the all shorthand css property resets all of an element's properties except
unicode-bidi, direction, and css custom properties.
...note that none of these values affect the
unicode-bidi and direction properties.
... formal definition initial valuethere is no practical initial value for it.applies toall elementsinheritednocomputed valueas the specified value applies to each property this is a shorthand for.animation typeas each of the properties of the shorthand (all properties but
unicode-bidi and direction) formal syntax initial | inherit | unset | revert examples html <blockquote id="quote"> lorem ipsum dolor sit amet, consectetur adipiscing elit.
direction - CSS: Cascading Style Sheets
the property sets the base text direction of block-level elements and the direction of embeddings created by the
unicode-bidi property.
... the direction and
unicode-bidi properties are the two only properties which are not affected by the all shorthand property.
... for the direction property to have any effect on inline-level elements, the
unicode-bidi property's value must be embed or override.
Index - Developer guides
31 localizations and character encodings character encodings, html, localization, needsmarkupwork browsers process text as
unicode internally.
...the html specification recommends the use of the utf-8 encoding (which can represent all of
unicode) and regardless of the encoding used requires web content to declare what encoding was used.
... 40 the
unicode bidirectional text algorithm algorithm, bidi, guide, internationalization, introduction, localization, text,
unicode, direction, i18n, l10n, ltr, rtl the
unicode® bidirectional algorithm (also known as the bidi algorithm) is part of the
unicode text standard that describes how the user agent should order characters while rendering
unicode text.
Localizations and character encodings - Developer guides
browsers process text as
unicode internally.
...the html specification recommends the use of the utf-8 encoding (which can represent all of
unicode) and regardless of the encoding used requires web content to declare what encoding was used.
...in the 1990s, it was common to leave the encoding undeclared and to use a region-specific encoding that wasn't able to represent all of
unicode.
Array.prototype.sort() - JavaScript
if omitted, the array elements are converted to strings, then sorted according to each character's
unicode code point value.
...in a numeric sort, 9 comes before 80, but because numbers are converted to strings, "80" comes before "9" in the
unicode order.
... note : in utf-16,
unicode characters above \uffff are encoded as two surrogate code units, of the range \ud800-\udfff.
Intl.Collator.prototype.resolvedOptions() - JavaScript
if any
unicode extension values were requested in the input bcp 47 language tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
... collation the value requested using the
unicode extension key "co", if it is supported for locale, or "default".
... numeric casefirst the values requested for these properties in the options argument or using the
unicode extension keys "kn" and "kf" or filled in as defaults.
Intl.Locale() constructor - JavaScript
the intl.locale constructor is a standard built-in property of the intl object that represents a
unicode locale identifier.
... syntax new intl.locale(tag [, options]) parameters tag the
unicode locale identifier string.
...keys are
unicode locale tags, values are valid
unicode tag values.
Intl.Locale.prototype.collation - JavaScript
below is a table with the available collation types, taken from the
unicode collation specification.
... direct binary code point order (used in hindi) ducet the default
unicode collation element table order emoji recommended ordering for emoji characters eor european ordering rules gb2312 pinyin ordering for latin, gb2312han charset ordering for cjk characters (used in chinese) phonebk phonebook style ordering (such as in german) phonetic phonetic ordering (sorting based on pronunciation) pinyin pin...
... adding a collation type via the locale string in the
unicode locale string spec, collation types are locale key "extension subtags".
Intl.Locale.prototype.language - JavaScript
the
unicode specification treats the language identifier of a locale as the language and the region together (to make a distiction between dialects and variations, e.g.
... examples setting the language in the locale identifer string argument in order to be a valid
unicode locale identifier, a string must start with the language subtag.
... the main argument to the locale constructor must be a valid
unicode locale identifier, so whenever the constructor is used, it must be passed an identifier with a language subtag.
Intl.Locale.prototype.numberingSystem - JavaScript
as with most internationalization schemas, the numeral systems that can be represented in a locale object by numberingsystem are standardized by
unicode.
... a table of the standard
unicode numeral systems can be seen below.
...dec modern tamil decimal digits telu telugu digits thai thai digits tirh tirhuta digits tibt tibetan digits traditio traditional numerals — may be algorithmic vaii vai digits wara warang citi digits wcho wancho digits examples setting the numberingsystem value via the locale string in the
unicode locale string spec, the values that numberingsystem represents correspond to the key nu.
RegExp.prototype.dotAll - JavaScript
the "s" flag indicates that the dot special character (".") should additionally match the following line terminator ("newline") characters in a string, which it would not match otherwise: u+000a line feed (lf) ("\n") u+000d carriage return (cr) ("\r") u+2028 line separator u+2029 paragraph separator this effectively means the dot will match any character on the
unicode basic multilingual plane (bmp).
... to allow it to match astral characters, the "u" (
unicode) flag should be used.
... using both flags in conjunction allows the dot to match any
unicode character, without exceptions.
Template literals (Template strings) - JavaScript
let str = string.raw`hi\n${2+3}!`; // "hi\n5!" str.length; // 6 array.from(str).join(','); // "h,i,\,n,5,!" tagged templates and escape sequences es2016 behavior as of ecmascript 2016, tagged templates conform to the rules of the following escape sequences:
unicode escapes started by "\u", for example \u00a9
unicode code point escapes indicated by "\u{}", for example \u{2f804} hexadecimal escapes started by "\x", for example \xa9 octal literal escapes started by "\0o" and followed by one or more digits, for example \0o251 this means that a tagged template like the following is problematic, because, per ecmascript grammar, a parser looks for valid unico...
...de escape sequences, but finds malformed syntax: latex`\
unicode` // throws in older ecmascript versions (es2016 and earlier) // syntaxerror: malformed
unicode character escape sequence es2018 revision of illegal escape sequences tagged templates should allow the embedding of languages (for example dsls, or latex), where other escapes sequences are common.
...they will show up as undefined element in the “cooked” array: function latex(str) { return { "cooked": str[0], "raw": str.raw[0] } } latex`\
unicode` // { cooked: undefined, raw: "\\
unicode" } note that the escape sequence restriction is only dropped from tagged templates—not from untagged template literals: let bad = `bad escape sequence: \
unicode`; specifications specification ecmascript (ecma-262)the definition of 'template literals' in that specification.
base64 - Archive of obsolete content
in order to encode and decode
unicode strings, the charset parameter needs to be set: var base64 = require("sdk/base64"); var encodeddata = base64.encode(
unicodestring, "utf-8"); returns string : the encoded string decode(data, charset) decodes a string of data which has been encoded using base-64 encoding.
...in order to encode and decode
unicode strings, the charset parameter needs to be set: var base64 = require("sdk/base64"); var decodeddata = base64.decode(encodeddata, "utf-8"); returns string : the decoded string ...
Localization - Archive of obsolete content
singular form for "one", and a plural form for "everything else, including zero": one tomato no tomatoes two tomatoes but russian has different forms for numbers ending in 1 (except 11), numbers ending in 2-4 (except 12-14) and other numbers: один помидор // one tomato два помидора // two tomatoes пять помидоров // five tomatoes the sdk uses the
unicode cldr data to describe the different plural forms used by different languages.
...
unicode cldr plural forms the
unicode cldr project defines a scheme for describing a particular language's plural rules.
File I/O - Archive of obsolete content
it defaults to // fileutils.mode_wronly | fileutils.mode_create | fileutils.mode_truncate; var ostream = fileutils.opensafefileoutputstream(file); var converter = components.classes["@mozilla.org/intl/scriptable
unicodeconverter"].
... createinstance(components.interfaces.nsiscriptable
unicodeconverter); converter.charset = "utf-8"; var istream = converter.converttoinputstream(data); // the last argument (the callback) is optional.
Index - Archive of obsolete content
624 reading textual data add-ons, extensions, internationalization,
unicode this article describes how to read textual data from streams, files and sockets.
..."ifdefs", or conditional instructions, are used to build different code 693 writing textual data add-ons, extensions, internationalization,
unicode this article describes how to write textual data to streams, files and sockets in an internationalization-aware way.
International characters in XUL JavaScript - Archive of obsolete content
unicode escapes, as discussed below, have always worked.
...however, you can use
unicode escapes – the earlier example rewritten using them would be: var text = "ein sch\u00f6nes beispiel eines mehrsprachigen textes: \u65e5\u672c\u8a9e"; an alternative might be to use property files via nsistringbundle or the xul <stringbundle> element; this would allow for localization of the xul.
Browser Feature Detection - Archive of obsolete content
peak true false true speakheader true false false speaknumeral true false false speakpunctuation true false false speechrate true false true stress true false false tablelayout true true true textshadow true false true top true true true
unicodebidi true true true visibility true true true voicefamily true false true volume true false true widows true false true zindex true true true test code // document properties that are used to determine // support levels var _features = { 'domcore1': [ {name: 'doctype', 'supported': false},...
... {name: 'speak', 'supported': false}, {name: 'speakheader', 'supported': false}, {name: 'speaknumeral', 'supported': false}, {name: 'speakpunctuation', 'supported': false}, {name: 'speechrate', 'supported': false}, {name: 'stress', 'supported': false}, {name: 'tablelayout', 'supported': false}, {name: 'textshadow', 'supported': false}, {name: 'top', 'supported': false}, {name: '
unicodebidi', 'supported': false}, {name: 'visibility', 'supported': false}, {name: 'voicefamily', 'supported': false}, {name: 'volume', 'supported': false}, {name: 'widows', 'supported': false}, {name: 'zindex', 'supported': false} ] }; function supports(object, featureset) { var i; var features = _features[featureset]; var level = 0; if (!features) return level; for (i = 0; i < ...
New in JavaScript 1.3 - Archive of obsolete content
the most significant change in javascript 1.3 was compliance with ecma-262 and
unicode by removing inconsistencies between javascript 1.2 and the new ecma standard (which was published in june 1997).
....prototype.getutcminutes() date.prototype.getutcseconds() date.prototype.getutcmilliseconds() date.prototype.toutcstring() date.prototype.setutcfullyear() date.prototype.setutcmonth() date.prototype.setutcdate() date.prototype.setutchours() date.prototype.setutcminutes() date.prototype.setutcseconds() date.prototype.setutcmilliseconds() other new features strict equality operators
unicode support a javascript console was introduced.
ECMAScript 2015 support in Mozilla - Archive of obsolete content
primitive] (firefox 44) new promise object promise (firefox 24, enabled by default in firefox 29) new proxy object proxy (firefox 18) preventextensions() trap (firefox 22) isextensible() trap (firefox 31) getprototypeof() and setprototypeof() traps (firefox 49) new reflect object reflect (firefox 42) additions to the regexp object regexp sticky (y) flag (firefox 38) regexp
unicode (u) flag (firefox 46) generic regexp.prototype.tostring (firefox 39) regexp.prototype[@@match]() (firefox 49) regexp.prototype[@@replace]() (firefox 49) regexp.prototype[@@search]() (firefox 49) regexp.prototype[@@split]() (firefox 49) get regexp[@@species] (firefox 49) additions to the string object string.fromcodepoint() (firefox 29) string.prototype.codepointat() (firefox 29) stri...
...ng.prototype.startswith(), string.prototype.endswith() (firefox 17) string.prototype.includes() (firefox 40) (formerly string.prototype.contains() (firefox 17)) string.prototype.repeat() (firefox 24) string.prototype.normalize() (firefox 31) string.raw() (firefox 34) \u{xxxxxx}
unicode code point escapes (firefox 40) new symbol object symbol (firefox 36) symbol.iterator (firefox 36) symbol.for() - global symbol registry (firefox 36) symbol.match (firefox 40) symbol.species (firefox 41) symbol.toprimitive (firefox 44) symbol.prototype[@@toprimitive] (firefox 44) symbol.replace (firefox 49) symbol.search (firefox 49) symbol.split (firefox 49) symbol.hasinstance (firefox 50) typed arrays typed arrays are specified as part of ecmascript 2015 and no longer in their own specifica...
Web fonts - Learn web development
in newer browsers, you can also specify a
unicode-range value, which is a specific range of characters you want to use out of the web font — in supporting browsers, only the specified characters will be downloaded, saving unnecessary downloading.
... creating custom font stacks with
unicode-range by drew mclellan provides some useful ideas on how to make use of this.
JS::DeflateStringToUTF8Buffer
numcharsp size_t* the pointer to receive the number of
unicode characters written to the buffer.
...if numcharsp is provided, it will be updated to hold the number of
unicode characters written to the buffer.
JS_CompareStrings
there is no attempt to use the more complex, semantically oriented definitions of character or string equality and collating order defined in the
unicode specification.
... therefore strings that are canonically equal according to the
unicode standard could test as unequal.
JS_ConvertArguments
format can contain one or more instances of the following characters, as appropriate: character c type description b bool boolean c uint16_t ecma uint16_t,
unicode character i int32_t ecma int32_t j int32_t ecma int32_t (used to be different, behaves like i now) obsolete since jsapi 28 u uint32_t ecma uint32_t d double ieee double i double integral ieee double s char * (c string) bug 607292 s jsstring *
unicode string, accessed by a jsstring pointer ...
... w char16_t *
unicode character vector, 0-terminated (w for wide) o jsobject * object reference f jsfunction * the argument is converted to a function as though by a call to js_valuetofunction.
Places utilities for JavaScript
; void openurinodesintabs(array nsinavhistoryresultnode anodes, nsidomevent aevent); void createmenuitemfornode(nsinavhistoryresultnode anode, acontainersmap); constants mimetypes type_x_moz_place_container type_x_moz_place_separator: "text/x-moz-place-separator", type_x_moz_place: "text/x-moz-place", type_x_moz_url: "text/x-moz-url", type_html: "text/html", type_
unicode: "text/
unicode", services there's easy access to some of the common services used in bookmarks or history navigation here.
...this is useful for wrapping a container as type_x_moz_url, type_html or type_
unicode.
nsIDocShell
in mozilla code, all text is encoded as
unicode.
... when reading a document, a converter is used to translate the text from its original format into
unicode.
nsIFile
using the native form limits the ability of your code to deal with the full
unicode support on windows 2000 or later where the os itself does not have such a limitation.
...the preferred form operates on utf-16 (
unicode) encoded character strings.
nsIMsgIdentity
void copy(in nsimsgidentity identity); parameters identity getunicharattribute() getter for
unicode attributes.
... astring getunicharattribute(in string name); parameters name setunicharattribute() setter for
unicode attributes.
nsIScriptableIO
text: read
unicode-converted text.
... text: write
unicode-converted text.
nsIStringBundle
you can only pass
unicode strings in.
...you may also use other formatting codes, but can only pass
unicode strings in.
nsIUTF8ConverterService
exceptions thrown ns_error_uconv_noconv when there is no decoder for acharset or error code of nsi
unicodedecoder in case of conversion failure.
...exceptions thrown ns_error_uconv_noconv when there is no decoder for acharset or error code of nsi
unicodedecoder in case of conversion failure.
XPIDL
* string only chars in range \u0000-\u00ff permitted most of the time you don't want to use this type but autf8string or acstring unsigned long uint32_t uint32_t* number unsigned long long uint64_t uint64_t* number unsigned short uint16_t uint16_t* number wchar char16_t char16_t* string full
unicode set permitted wstring const char16_t* char16_t** string full
unicode set permitted most of the time you don't want to use this type but astring.
... nsqiresult void* void** object should only be used with methods that act like queryinterface autf8string const nsacstring& nsacstring& string full
unicode set permitted (translated to utf-8) acstring const nsacstring& nsacstring& string only chars in range \u0000-\u00ff permitted astring const nsastring& nsastring& string full
unicode set permitted jsval const jsval& jsval* anything jsid jsid jsid* not allowed promise mozilla::dom::promise* mozilla:...
Add to iPhoto
this.cfstringcreatewithcharacters = this.lib.declare("cfstringcreatewithcharacters", ctypes.default_abi, this.cfstringref, // returns a new cfstringref ctypes.voidptr_t, // allocator ctypes.jschar.ptr, // pointer to the
unicode string ctypes.int32_t); // length of the string cfstringcreatewithcharacters() is used to create a new cfstring object using a
unicode string as the source string, which is copied into the new cfstring object.
... it returns a cfstringref, which is a pointer to the new string, and accepts, as input, three parameters: an allocator, which is a pointer to a routine that will allocate the memory to contain the new object (we use the ctypes.voidptr_t type for this), a pointer to the
unicode string to copy into the new string object (ctypes.jschar.ptr), and the length of the
unicode string in characters.
ctypes
javascript characters 16-bit c
unicode characters are handled by js-ctypes using the jschar type.
...these are
unicode characters.
FontFace - Web APIs
fontface.
unicoderange a cssomstring that retrieves or sets the range of
unicode codepoints encompassing the font.
... it is equivalent to the
unicode-range descriptor.
HTMLInputElement - Web APIs
maxlength long: returns / sets the element's maxlength attribute, containing the maximum number of characters (in
unicode code points) that the value can have.
... minlength long: returns / sets the element's minlength attribute, containing the minimum number of characters (in
unicode code points) that the value can have.
MediaStreamAudioSourceNode - Web APIs
track ordering for the purposes of the mediastreamtrackaudiosourcenode interface, the order of the audio tracks on the stream is determined by taking the tracks whose kind is audio, then sorting the tracks by their id property's values, in
unicode code point order (essentially, in alphabetical or lexicographical order, for ids which are simple alphanumeric strings).
... the first track, then, is the track whose id comes first when the tracks' ids are all sorted by
unicode code point.
Controlling multiple parameters with ConstantSourceNode - Web APIs
function toggleplay(event) { if (playing) { playbutton.innerhtml = "▶️"; stoposcillators(); } else { playbutton.innerhtml = "⏸"; startoscillators(); } } if the playing variable indicates we're already playing the oscillators, we change the playbutton's content to be the
unicode character "right-pointing triangle" (▶️) and call stoposcillators() to shut down the oscillators.
... if playing is false, indicating that we're currently paused, we change the play button's content to be the
unicode character "pause symbol" (⏸) and call startoscillators() to start the oscillators playing their tones.
Architecture - Accessibility
it is concatenated together with all its sibling text nodes, and embedded objects between the text nodes are exposed as the
unicoded embedded object character '\xfffc'.
...if it has text siblings, then it gets exposed as the
unicode char for an embedded object, which is '\xfffc' within the parent nshypertextaccessible.
::before (:before) - CSS: Cascading Style Sheets
if you need to use a special character, and can not enter it literally into your css content string, use a
unicode escape sequence, consisting of a backslash followed by the hexadecimal
unicode value.
...i> <li>pour a ladleful of batter onto a hot, greased, flat frying pan</li> <li>fry until the top of the pancake loses its gloss</li> <li>flip it over and fry for a couple more minutes</li> <li>serve with your favorite topping</li> </ol> css li { padding:0.5em; } li[aria-current='step'] { font-weight:bold; } li[aria-current='step']::after { content: " \21e6"; /* hexadecimal for
unicode leftwards white arrow*/ display: inline; } result specifications specification status comment css pseudo-elements level 4the definition of '::before' in that specification.
@charset - CSS: Cascading Style Sheets
as there are several ways to define the character encoding of a style sheet, the browser will try the following methods in the following order (and stop as soon as one yields a result) : the value of the
unicode byte-order character placed at the beginning of the file.
... formal syntax @charset "<charset>"; examples valid and invalid charset declarations @charset "utf-8"; /* set the encoding of the style sheet to
unicode utf-8 */ @charset 'iso-8859-15'; /* invalid, wrong quoting style used */ @charset "utf-8"; /* invalid, more than one space */ @charset "utf-8"; /* invalid, there is a character (a space) before the at-rule */ @charset utf-8; /* invalid, without ' or ", the charset is not a css <string> */ specifications specification status comment css level 2 (r...
@font-face - CSS: Cascading Style Sheets
unicode-range the range of
unicode code points to be used from the font.
...for example, the following will not work: .classname { @font-face { font-family: myhelvetica; src: local("helvetica neue bold"), local("helveticaneue-bold"), url(mgopenmodernabold.ttf); font-weight: bold; } } formal syntax @font-face { [ font-family: <family-name>; ] | [ src: <src>; ] | [
unicode-range: <
unicode-range>; ] | [ font-variant: <font-variant>; ] | [ font-feature-settings: <font-feature-settings>; ] | [ font-variation-settings: <font-variation-settings>; ] | [ font-stretch: <font-stretch>; ] | [ font-weight: <font-weight>; ] | [ font-style: <font-style>; ] }where <family-name> = <string> | <custom-ident>+ examples specifying a downloadable font this example simpl...
<custom-ident> - CSS: Cascading Style Sheets
it consists of one or more characters, where characters can be any of the following: any alphabetical character (a to z, or a to z), any decimal digit (0 to 9), a hyphen (-), an underscore (_), an escaped character (preceded by a backslash, \), a
unicode character (in the format of a backslash, \, followed by one to six hexadecimal digits, representing its
unicode code point) note that id1, id1, id1 and id1 are all different identifiers as they are case-sensitive.
... examples valid identifiers nono79 a mix of alphanumeric characters and numbers ground-level a mix of alphanumeric characters and a dash -test a dash followed by alphanumeric characters _internal an underscore followed by alphanumeric characters \22 toto a
unicode character followed by a sequence of alphanumeric characters bili\.bob a correctly escaped period invalid identifiers 34rem it must not start with a decimal digit.
ident - CSS: Cascading Style Sheets
it consists of one or more characters, where characters can be any of the following: any alphabetical character (a to z, or a to z), any decimal digit (0 to 9), a hyphen (-), an underscore (_), an escaped character (preceded by a backslash, \), a
unicode character (in the format of a backslash, \, followed by one to six hexadecimal digits, representing its
unicode code point) note that id1, id1, id1 and id1 are all different identifiers as they are case-sensitive.
... examples valid identifiers nono79 a mix of alphanumeric characters and numbers ground-level a mix of alphanumeric characters and a dash -test a dash followed by alphanumeric characters --toto a custom-property like identifier _internal an underscore followed by alphanumeric characters \22 toto a
unicode character followed by a sequence of alphanumeric characters bili\.bob a correctly escaped period invalid identifiers 34rem it must not start with a decimal digit.
<ratio> - CSS: Cascading Style Sheets
syntax in media queries level 3, the <ratio> data type consisted of a strictly positive <integer> followed by a forward slash ('/',
unicode u+002f solidus) and a second strictly positive <integer>.
... in media queries level 4, the <ratio> date type is updated to consist of a strictly positive <number> followed by a forward slash ('/',
unicode u+002f solidus) and a second strictly positive <number>.
<bdi>: The Bidirectional Isolate element - HTML: Hypertext Markup Language
browsers implement the
unicode bidirectional algorithm to handle this.
... though the same visual effect can be achieved using the css rule
unicode-bidi: isolate on a <span> or another text-formatting element, html authors should not use this approach because it is not semantic and browsers are allowed to ignore css styling.
<input type="email"> - HTML: Hypertext Markup Language
it must be a valid javascript regular expression, as used by the regexp type, and as documented in our guide on regular expressions; the 'u' flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of
unicode code points, instead of as ascii.
... if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use
unicode bidirectional algorithm formatting characters to override directionality within the placeholder; see overriding bidi using
unicode control characters in the
unicode bidirectional text algorithm for those characters.
<input type="password"> - HTML: Hypertext Markup Language
it must be a valid javascript regular expression, as used by the regexp type, and as documented in our guide on regular expressions; the 'u' flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of
unicode code points, instead of as ascii.
... if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use
unicode bidirectional algorithm formatting characters to override directionality within the placeholder; see overriding bidi using
unicode control characters in the
unicode bidirectional text algorithm for those characters.
<input type="search"> - HTML: Hypertext Markup Language
it must be a valid javascript regular expression, as used by the regexp type, and as documented in our guide on regular expressions; the 'u' flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of
unicode code points, instead of as ascii.
... if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use
unicode bidirectional algorithm formatting characters to override directionality within the placeholder; see overriding bidi using
unicode control characters in the
unicode bidirectional text algorithm for those characters.
<input type="tel"> - HTML: Hypertext Markup Language
it must be a valid javascript regular expression, as used by the regexp type, and as documented in our guide on regular expressions; the 'u' flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of
unicode code points, instead of as ascii.
... if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use
unicode bidirectional algorithm formatting characters to override directionality within the placeholder; see overriding bidi using
unicode control characters in the
unicode bidirectional text algorithm for those characters.
<input type="text"> - HTML: Hypertext Markup Language
it must be a valid javascript regular expression, as used by the regexp type, and as documented in our guide on regular expressions; the 'u' flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of
unicode code points, instead of as ascii.
... if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use
unicode bidirectional algorithm formatting characters to override directionality within the placeholder; see overriding bidi using
unicode control characters in the
unicode bidirectional text algorithm for those characters.
<input type="url"> - HTML: Hypertext Markup Language
it must be a valid javascript regular expression, as used by the regexp type, and as documented in our guide on regular expressions; the 'u' flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of
unicode code points, instead of as ascii.
... if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use
unicode bidirectional algorithm formatting characters to override directionality within the placeholder; see overriding bidi using
unicode control characters in the
unicode bidirectional text algorithm for those characters.
Intl.DateTimeFormat.prototype.resolvedOptions() - JavaScript
if any
unicode extension values were requested in the input bcp 47 language tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
..."gregory" numberingsystem the values requested using the
unicode extension keys "ca" and "nu" or filled in as default values.
Intl.Locale.prototype.calendar - JavaScript
the following table shows all the valid
unicode calendar key strings, along with a description of the calendar era they represent.
...
unicode calendar keys
unicode calendar keys calendar key (name) description buddhist thai buddhist calendar chinese traditional chinese calendar coptic coptic calendar dangi traditional korean calendar ethioaa ethiopic calendar, amete alem (epoch approx.
Intl.Locale.prototype.script - JavaScript
there are exceptions to this rule, however, and it is important to indicate the script whenever possible, in order to have a complete
unicode language identifier.
... examples setting the script in the locale identifer string argument the script is the second part of a valid
unicode language identifier string, and can be set by adding it to the locale identifier string that is passed into the locale constructor.
Intl.Locale.prototype.toString() - JavaScript
syntax locale.tostring() return value the locale's
unicode locale identifier string.
... description the locale object is a javascript representation of a concept
unicode locale identifier.
Intl.NumberFormat.prototype.resolvedOptions() - JavaScript
if any
unicode extension values were requested in the input bcp 47 language tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
... numberingsystem the value provided for this properties in the options argument, if present, or the value requested using the
unicode extension key "nu" or filled in as a default.
Intl.RelativeTimeFormat.prototype.resolvedOptions() - JavaScript
if any
unicode extension values were requested in the input bcp 47 language tag that led to this locale, the key-value pairs that were requested and are supported for this locale are included in locale.
... numberingsystem the value requested using the
unicode extension key "nu" or filled in as a default.
RegExp() constructor - JavaScript
i (ignore case) if u flag is also enabled, use
unicode case folding.
... u (
unicode) treat pattern as a sequence of
unicode code points.
String.prototype.split() - JavaScript
warning: when the empty string ("") is used as a separator, the string is not split by user-perceived characters (grapheme clusters) or
unicode characters (codepoints), but by utf-16 codeunits.
... reversing a string using split() this is not a robust way to reverse a string: const str = 'asdfghjkl' const strreverse = str.split('').reverse().join('') // 'lkjhgfdsa' // split() returns an array on which reverse() and join() can be applied it doesn't work if the string contains grapheme clusters, even when using a
unicode-aware split.
SVG Presentation Attributes - SVG: Scalable Vector Graphics
rtical image-rendering kerning letter-spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering solid-color solid-opacity stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform
unicode-bidi vector-effect visibility word-spacing writing-mode attributes alignment-baseline it specifies how an object is aligned along the font baseline with respect to its parent.
... value: <transform-list>; animatable: yes
unicode-bidi - value:; animatable: - vector-effect specifies the vector effect to use when drawing an object.
direction - SVG: Scalable Vector Graphics
it also may affect the direction in which characters are positioned if the
unicode-bidi property's value is either embed or bidi-override.
... in many cases, the bidirectional
unicode algorithm produces the desired result automatically, so this attribute doesn't need to be specified in those cases.
SVG Attribute reference - SVG: Scalable Vector Graphics
kethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfacescale systemlanguage t tabindex tablevalues target targetx targety text-anchor text-decoration text-rendering textlength to transform transform-origin type u u1 u2 underline-position underline-thickness
unicode unicode-bidi
unicode-range units-per-em v v-alphabetic v-hanging v-ideographic v-mathematical values vector-effect version vert-adv-y vert-origin-x vert-origin-y viewbox viewtarget visibility w width widths word-spacing writing-mode x x x-height x1 x2 xchannelselector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type x...
...ntation-vertical, image-rendering, kerning, letter-spacing, lighting-color, marker-end, marker-mid, marker-start, mask, opacity, overflow, pointer-events, shape-rendering, stop-color, stop-opacity, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, text-decoration, text-rendering, transform, transform-origin,
unicode-bidi, vector-effect, visibility, word-spacing, writing-mode filters attributes filter primitive attributes height, result, width, x, y transfer function attributes type, tablevalues, slope, intercept, amplitude, exponent, offset animation attributes animation attribute target attributes attributetype, attributename animation timing attributes begin, dur, end, min, max, restart, repeatco...
<glyph> - SVG: Scalable Vector Graphics
ntsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <pattern>, <script>, <style>, <switch>, <text>, <view> attributes global attributes core attributes presentation attributes class style specific attributes d horiz-adv-x vert-origin-x vert-origin-y vert-adv-y
unicode glyph-name orientation arabic-form lang dom interface this element implements the svgglyphelement interface.
...d" font-style="normal" units-per-em="1000" cap-height="600" x-height="400" ascent="700" descent="300" alphabetic="0" mathematical="350" ideographic="400" hanging="500"> <font-face-src> <font-face-name name="super sans bold"/> </font-face-src> </font-face> <missing-glyph><path d="m0,0h200v200h-200z"/></missing-glyph> <glyph
unicode="!" horiz-adv-x="80" d="m0,0h200v200h-200z"></glyph> <glyph
unicode="@" d="m0,50l100,300l400,100z"></glyph> </font> </defs> <text x="100" y="100" style="font-family: 'super sans', helvetica, sans-serif; font-weight: bold; font-style: normal">text using embe@dded font!</text> </svg> result specifications specification status comment ...
SVG 1.1 Support in Firefox - SVG: Scalable Vector Graphics
various presentation attributes don't work (alignment-baseline, baseline-shift, dominant-baseline, kerning, letter-spacing, word-spacing, writing-mode, glyph-orientation-horizontal, glyph-orientation-vertical) recently implemented presentation attributes: direction,
unicode-bidi, font-variant, text-decoration svgtextelement recently imlemented bindings: selectsubstring recently implemented attributes: textlength, lengthadjust tspan implemented.
... various presentation attributes don't work (alignment-baseline, baseline-shift, dominant-baseline, kerning, letter-spacing, word-spacing, writing-mode, glyph-orientation-horizontal, glyph-orientation-vertical) recently implemented presentation attributes: direction,
unicode-bidi, font-variant, text-decoration svgtspanelement recently implemented bindings: selectsubstring recently implemented attributes: textlength, lengthadjust tref this feature, present in early draft of the spec, has been removed from it and is therefor not implemented (bug 273171).
CSS3 - Archive of obsolete content
css writing modes module level 3 proposed recommendation defines the writing modes of both horizontal and vertical scripts and clarifies how the css direction and
unicode-bidi properties interact with the new css text-orientation property, and extends them where needed.
Clipboard - Archive of obsolete content
the only flavors currently implemented are 'plain' (text/
unicode) and 'html' (which is html).string"text" here's an example of how to use the method to set the clipboard.
Clipboard - Archive of obsolete content
the only flavors currently implemented are 'plain' (text/
unicode) and 'html' (which is html).string"text" here's an example of how to use the method to set the clipboard.
Clipboard - Archive of obsolete content
the only flavors currently implemented are 'plain' (text/
unicode) and 'html' (which is html).string"text" here's an example of how to use the method to set the clipboard.
String Quick Reference - Archive of obsolete content
use left(), right() and mid() to grab a segment of a string: // get an 8-character string starting at the 4th position nsautostring leftside; str.left(leftside, 12); nsautostring middle; leftside.right(middle, 8); new way: use substring() to grab a direct reference to those characters: // get an 8-character string starting at the 4th position const nsastring& middle = substring(str, 4, 8);
unicode literals what: use macro tricks to make wide-character literal strings.
2006-09-22 - Archive of obsolete content
thai issue for 2.0 timeframe arabic support & uniscribe: details nstextframe: re-design and impact on i18n native
unicode converter editing and selection: should editing and selection operate on grapheme clusters?
ECMAScript 2016 to ES.Next support in Mozilla - Archive of obsolete content
unction parameter lists (firefox 52) ecmascript 2018 spread in object literals and rest parameters (firefox 55) for await...of (firefox 57) global_objects/sharedarraybuffer (firefox 57, with flags) global_objects/promise/finally (firefox 58) global_objects/regexp/dotall (not yet implemented; in other browsers) regexp lookbehind assertions (not yet implemented; in other browsers) regexp
unicode property escapes (not yet implemented; in other browsers) regexp named capture groups (not yet implemented; in other browsers) ecmascript 2019 array.flat() (firefox 62) array.flatmap() (firefox 62) object.fromentries() (firefox 63) string.trimstart() and string.trimend() (firefox 61) optional catch binding (firefox 58) function.tostring() revision (firefox 54) symbol.description (fire...
Choosing Standards Compliance Over Proprietary Practices - Archive of obsolete content
titute ) atsc (advanced television systems committee ) ieee (institute of electrical and electronics engineers ) ietf (internet engineering task force ) irtf (internet research task force ) iso (international standards organization ) itu (international telecommunication union ) oasis (organization for the advancement of structured information standards ) oma (open mobile alliance ), uni (
unicode consortium ) w3c (world wide web consortium ) iana (internet assigned numbers authority ) ecma international like the processes and standards that accountants and project managers must follow, the above-mentioned standards organizations provide focus and direction for the development engineering community.
Gecko FAQ - Gecko Redirect 1
xml 1.0: full support, except for processing to manipulate default attributes rdf: full support, except for abouteach, abouteachprefix, and parsetype javascript 1.5, including ecma-262 edition 3 (ecmascript) compliance, except for date.todatestring and date.totimestring, which are not implemented transfer protocols: http 1.1 (including gzip compression), ftp ssl
unicode oji (open java interface) image formats png gif jpeg, pjpeg does "full support" mean that gecko has zero bugs today or will have zero bugs at some point in the future?
I18N - MDN Web Docs Glossary: Definitions of Web-related terms
(the w3c definition) among other things, i18n requires support for multiple character sets (usually via
unicode) units of measure (currency, °c/°f, km/miles, etc.) time and date formats keyboard layouts text directions learn more general knowledge i18n on wikipedia technical reference i18n on w3c i18n on gala-global.org learn about it i18n material on i18nguy.com ...
Whitespace - MDN Web Docs Glossary: Definitions of Web-related terms
in javascript ecmascript® 2015 language specification specifies several
unicode codepoints as white space: u+0009 character tabulation <tab>, u+000b line tabulation <vt>, u+000c form feed <ff>, u+0020 space <sp>, u+00a0 no-break space <nbsp>, u+feff zero width no-break space <zwnbsp> and other category “zs” any other
unicode “separator, space” code point <usp>.
MDN Web Docs Glossary: Definitions of Web-related terms
time to first byte time to interactive tld tofu transmission control protocol (tcp) transport layer security (tls) tree shaking trident truthy ttl turn type type coercion type conversion u udp (user datagram protocol) ui undefined
unicode uri url urn usenet user agent utf-8 ux v validator value variable vendor prefix viewport visual viewport voip w w3c wai wcag web performance web server web standards webassembly ...
How to build custom form controls - Learn web development
.select:after { content : "▼"; /* we use the
unicode character u+25bc; make sure to set a charset meta tag */ position: absolute; z-index : 1; /* this will be important to keep the arrow from overlapping the list of options */ top : 0; right : 0; box-sizing : border-box; height : 100%; width : 2em; padding-top : .1em; border-left : .2em solid #000; border-radius: 0 .1em .1em 0; background-color : #000; color : ...
Server-side web frameworks - Learn web development
restful routes, plugins, commands, perl-ish templates, content negotiation, session management, form validation, testing framework, static file server, cgi/psgi detection, and first-class
unicode support.
Embedding API for Accessibility
moz 0.8 fonts setcharpref("font.name.monospace.x-western", newfontname); setcharpref("font.name.serif.x-western", newfontname); setcharpref("font.name.sans-serif.x-western", newfontname); /* for other i18n charsets, change x-western to x-central-euro, x-cyrillic, x-
unicode, x-user-def, x-baltic, el, tr, he, ar, th, ja, zh-cn or zh-tw */ setintpref("font.size.fixed.x-western", newfontsize); setintpref("font.size.variable.x-western", newfontsize); /* for other i18n charsets, change the name as explained above for font face*/ se...
Mozilla’s UAAG evaluation report
zooming can be controlled via hotkeys ctrl+plus and ctrl+minus the prefs are at preferences, appearances, fonts there is also a hidden pref line that can be added to prefs.js, if you just want to change the minimum font size for a certain font: user_pref("font.minimum-size.x-western", newfontsizeinpoints); for other i18n charsets, change x-western to x-central-euro, x-cyrillic, x-
unicode, x-user-def, x-baltic, el, tr, he, ar, th, ja, zh-cn or zh-tw 4.2 configure font family.
Choosing the right memory allocator
allocating strings in xpcom code see "callee-allocated parameters" in the xpcom strings guide; use tonewcstring() or tonew
unicode() to allocate strings that will be passed out.
mach
here is a minimal mach command module: from __future__ import print_function,
unicode_literals from mach.decorators import ( commandargument, commandprovider, command, ) @commandprovider class machcommands(object): @command('doit', description='run it!') @commandargument('--debug', '-d', action='store_true', help='do it in debug mode.') def doit(self, debug=false): print('i did it!') from mach.decorators we import some python decorators w...
Experimental features in Firefox
nightly 78 yes developer edition 78 yes beta 78 yes release 78 no preference name network.preload css display stray control characters in css as hex boxes this feature renders control characters (
unicode category cc) other than tab (u+0009), line feed (u+000a), form feed (u+000c), and carriage return (u+000d) as a hexbox when they are not expected.
Gecko Keypress Event
that is, when the currently selected keyboard layout produces a
unicode character (according to the current state of capslock and numlock), the charcode property contains that character.
HTML parser threading
once a
unicode decoder has been set up, dodataavailable passes the byte data to the decoder whose output is accumulated into a linked list of nshtml5owningutf16buffer objects.
Initial setup
a solid,
unicode-based, text editor here are some suggestions: windows: notepad++ or notepad2 gnu/linux: vim, gedit or kate mac os x: textwrangler gnu make make is a tool which controls the generation of executables.
QA phase
pushing to your repository there are a couple of things you should take note of before you push to your repository: make sure that your files have been encoded in
unicode without bom (byte order mark).
Translation phase
do you prefer
unicode text editors to any other applications on earth?
Index
return codes o 0 - no error o 1 - user cancelled o 2 - usage error o 6 - nls init error o 8 - certificate db open error o 9 - key db open error o 10 - file initialization error o 11 -
unicode conversion error o 12 - temporary file creation error o 13 - pkcs11 get slot error o 14 - pkcs12 decoder start error o 15 - error read from import file o 16 - pkcs12 decode error o 17 - pkcs12 decoder verify error o 18 - pkcs12 decoder validate bags error o 19 - pkcs12 decoder import bags error o 20 - key db conversion version 3 to version 2 e...
NSS tools : pk12util
return codes o 0 - no error o 1 - user cancelled o 2 - usage error o 6 - nls init error o 8 - certificate db open error o 9 - key db open error o 10 - file initialization error o 11 -
unicode conversion error o 12 - temporary file creation error o 13 - pkcs11 get slot error o 14 - pkcs12 decoder start error o 15 - error read from import file o 16 - pkcs12 decode error o 17 - pkcs12 decoder verify error o 18 - pkcs12 decoder validate bags error o 19 - pkcs12 decoder import bags error o 20 - key db conversion version 3 to version 2 error o 21 - cert db conversion version 7 to ...
NSS Tools pk12util
error codes pk12util can return the following values: 0 - no error 1 - user cancelled 2 - usage error 6 - nls init error 8 - certificate db open error 9 - key db open error 10 - file initialization error 11 -
unicode conversion error 12 - temporary file creation error 13 - pkcs11 get slot error 14 - pkcs12 decoder start error 15 - error read from import file 16 - pkcs12 decode error 17 - pkcs12 decoder verify error 18 - pkcs12 decoder validate bags error 19 - pkcs12 decoder import bags error 20 - key db conversion version 3 to version 2 error 21 - cert db conversion version 7 to version 5 error 22 - cert and ...
NSS tools : pk12util
return codes o 0 - no error o 1 - user cancelled o 2 - usage error o 6 - nls init error o 8 - certificate db open error o 9 - key db open error o 10 - file initialization error o 11 -
unicode conversion error o 12 - temporary file creation error o 13 - pkcs11 get slot error o 14 - pkcs12 decoder start error o 15 - error read from import file o 16 - pkcs12 decode error o 17 - pkcs12 decoder verify error o 18 - pkcs12 decoder validate bags error o 19 - pkcs12 decoder import bags error o 20 - key db conversion version 3 to version 2 e...
JSDeletePropertyOp
this is either a string (
unicode property identifier) or an integer (element index).
JSFunction
the apis js_newfunction, js_definefunction, js_compilefunction, and their
unicode equivalents return values of type jsfunction *.
JSPropertyOp
this is either a string (
unicode property identifier) or an integer (element index).
JS_CStringsAreUTF8
that is, each byte is treated as a
unicode character, and there is no way to pass in a string containing characters beyond u+00ff.
JS_SetProperty
js_setucproperty is the
unicode version of the function.
JSAPI reference
n spidermonkey 1.8.1 obsolete since jsapi 16 js_entercrosscompartmentcall added in spidermonkey 1.8.1 obsolete since jsapi 18 js_leavecrosscompartmentcall added in spidermonkey 1.8.1 obsolete since jsapi 18 locale callbacks: struct jslocalecallbacks js_getlocalecallbacks js_setlocalecallbacks locale callback types: jslocaletouppercase jslocaletolowercase jslocalecompare jslocaleto
unicode scripts just running some javascript code is straightforward: class js::compileoptions added in spidermonkey 17 class js::owningcompileoptions added in spidermonkey 31 class js::readonlycompileoptions added in spidermonkey 31 class js::sourcebufferholder added in spidermonkey 31 js::evaluate added in spidermonkey 17 js_evaluatescript obsolete since jsapi 36 js_evaluateucscript obso...
Accessing the Windows Registry Using XPCOM
the data types supported by this interface are defined as named constants on the interface as follows: type_none — probably not useful type_string — a
unicode string value type_binary — binary data type_int — a 32 bit integer type_int64 — a 64 bit integer each of these types (except type_none) has a corresponding method to read the value data: readstringvalue() readbinaryvalue() readintvalue() readint64value() since javascript is a dynamically-typed language, you may wish to use the following code to handle all types of data.
nsAString
this class is typically used to represent
unicode character arrays.
XPCOM glue classes
this class is typically used to represent
unicode character arrays.nsastring (external)class declarationnsastring_internalclass declarationnsautorefnsautoref<t> is a template class implementing an object that holds a handle to a resource that must be released, typically on destruction of the object.</t>nsautoreftraitsnsautoreftraits<t> is a template class describing traits of resources held by objects of class nsautoref<t> and/or nscountedref<t>...
nsIAccessibleText
nsiaccessible getattributerange( in long offset, out long rangestartoffset, out long rangeendoffset ); parameters offset rangestartoffset rangeendoffset return value getcharacteratoffset() it would be better to return an unsigned long here, to allow
unicode chars > 16 bits.
nsIContentSniffer
let charset = "iso-8859-1"; try { // this pref has been removed, see bug 910192 charset = services.prefs.getcomplexvalue("intl.charset.default", ci.nsipreflocalizedstring).data; } catch (e) { } let conv = cc["@mozilla.org/intl/scriptable
unicodeconverter"] .createinstance(ci.nsiscriptable
unicodeconverter); conv.charset = charset; try { let str = conv.convertfrombytearray(adata, alength); if (str.substring(0, 5) == "%pdf-") return "application/pdf"; // we detected a pdf file } catch (e) { // try to get information from arequest } ...
nsIConverterInputStream
this allows reading
unicode strings from a stream, automatically converting the bytes from a selected character encoding.
nsIDOMSerializer
return value the serialized subtree in the form of a
unicode string.
nsIDragSession
boolean isdataflavorsupported( in string adataflavor ); parameters adataflavor a string representing the mime type of the data to be matched, such as "text/
unicode".
nsIJSON
only the five
unicode encodings "utf-8", "utf-16le", "utf-16be", "utf-32le" and "utf-32be" are supported.
nsIProtocolHandler
depending on the protocol's implementation,
unicode character sequences may or may not be %xx escaped.
nsIScriptableInputStream
in particular, some bindings may convert the byte values into
unicode code points, by assuming the byte values are encoded as iso-latin-1.
nsISupportsString
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for
unicode character strings.
XPCOM Interface Reference
ocolproxyservicensiproxyinfonsipushmessagensipushservicensipushsubscriptionnsiradiointerfacelayernsirandomgeneratornsirequestnsirequestobservernsiresumablechannelnsirunnablensishentrynsishistorynsishistorylistenernsisockssocketinfonsisslerrorlistenernsisslsocketcontrolnsiscreennsiscreenmanagernsiscripterrornsiscripterror2nsiscriptableionsiscriptableinputstreamnsiscriptableunescapehtmlnsiscriptable
unicodeconverternsiscrollablensisearchenginensisearchsubmissionnsisecuritycheckedcomponentnsiseekablestreamnsiselectionnsiselection2nsiselection3nsiselectioncontrollernsiselectionimageservicensiselectionprivatensiserversocketnsiserversocketlistenernsiservicemanagernsisessionstartupnsisessionstorensisimpleenumeratornsismsdatabaseservicensismsrequestmanagernsismsservicensisocketprovidernsisocketproviderser...
XPCOM Interface Reference by grouping
iaccessiblehypertext nsiaccessibleimage nsiaccessibleprovider nsiaccessibleretrieval nsiaccessiblerole nsiaccessiblescrolltype nsiaccessibleselectable nsiaccessiblestates nsiaccessibletable nsiaccessibletext nsiaccessibletreecache nsiaccessiblevalue nsiaccessnode nsisyncmessagesender script nsiscriptableunescapehtml nsiscriptable
unicodeconverter nsiscripterror nsiscripterror2 stylesheet nsistylesheetservice url nsiuri nsiurl util nsidomserializer nsidomxpathevaluator nsidomxpathexception nsidomxpathexpression nsidomxpathresult xslt nsixsltexception nsixsltprocessor download nsidownload nsidownloadmanager nsidownloadprogresslistene...
Working with out parameters
assuming you have an object called transferable, you would invoke gettransferdata() as follows: var adata = {}; var adatalen = {}; transferable.gettransferdata("text/
unicode", adata, adatalen); var data = adata.value; var datalen = adatalen.value; as you can see, after the call to gettransferdata(), the out values are then contained in the value properties of adata and adatalen.
Mail event system
example, a listener will be set up to be notified when the message count changes in a folder: // our variable to know if the listener fired var listenerhasfired = false; var totalmessageslistenerhasfired = false; // the listening function that will react to changes function myonintpropertychanged(item, property, oldvalue, newvalue) { listenerhasfired=true; var propertystring = property.get
unicode(); dump("onintpropertychanged has fired with property + " + propertystring + "!\n"); if (propertystring == "totalmessages") { totalmessageslistenerhasfired=true; //now show us visually var folder = item.queryinterface(components.interfaces.nsimsgfolder); dump("the folder " + folder.prettyname + " now has " + newvalue + " messages."); } else if (propertystrin...
Using js-ctypes
about declaring the function how we knew how to declare the function was by going to msdn site and looking at the messagebox (messageboxw is just a
unicode version of same function) function.
CSS.escape() - Web APIs
examples basic results css.escape(".foo#bar") // "\.foo\#bar" css.escape("()[]{}") // "\(\)\[\]\{\}" css.escape('--a') // "--a" css.escape(0) // "\30 ", the
unicode code point of '0' is 30 css.escape('\0') // "\ufffd", the
unicode replacement character in context uses to escape a string for use as part of a selector, the escape() method can be used: var element = document.queryselector('#' + css.escape(id) + ' > img'); the escape() method can also be used for escaping strings, although it escapes characters that don't strictly need to be esc...
DataTransferItem.getAsString() - Web APIs
the datatransferitem.getasstring() method invokes the given callback with the drag data item's string data as the argument if the item's kind is a plain
unicode string (i.e.
DataTransferItemList.add() - Web APIs
exceptions notsupportederror a string data parameter was provided, and the list already contains an item whose kind is "plain
unicode string" and whose type is equal to the specified type parameter.
FontFace.FontFace() - Web APIs
it can have the following keys: family: family style: style weight: weight stretch: stretch
unicoderange:
unicode range variant: variant featuresettings: feature settings example async function loadfonts() { const font = new fontface('myfont', 'url(myfont.woff)'); // wait for font to be loaded await font.load(); // add font to document document.fonts.add(font); // enable font with css class document.body.classlist.add('fonts-loaded'); } specifications ...
FontFaceSet.check() - Web APIs
"italic bold 16px roboto" text: limit the font faces to those whose
unicode range contains at least one of the characters in text.
FontFaceSet.load() - Web APIs
"italic bold 16px roboto" text: limit the font faces to those whose
unicode range contains at least one of the characters in text.
HTMLHyperlinkElementUtils.origin - Web APIs
the htmlhyperlinkelementutils.origin read-only property is a usvstring containing the
unicode serialization of the origin of the represented url; that is: for url using the http or https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified); for url using file: scheme, the value is browser dependant; for url using the blob: scheme, the origin of the url following blob:.
Key Values - Web APIs
vk_oem_attn (0xf0) gdk_key_eisu_shift (0xff2f) gdk_key_eisu_toggle (0xff30) qt::key_eisu_shift (0x0100112f) qt::key_eisu_toggle (0x01001130) "codeinput" the code input key, which enables code input mode, which lets the user enter characters by typing their code points (their
unicode character numbers, typically).
KeyboardEvent.key - Web APIs
if the pressed key has a printed representation, the returned value is a non-empty
unicode character string containing the printable representation of the key.
Location: origin - Web APIs
the origin read-only property of the location interface is a usvstring containing the
unicode serialization of the origin of the represented url; that is: for url using the http or https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified); for url using file: scheme, the value is browser dependant; for url using the blob: scheme, the origin of the url following blob:.
TextDecoder() - Web APIs
each label is associated with a specific encoding type: possible values of utflabel encoding "
unicode-1-1-utf-8", "utf-8", "utf8" 'utf-8' "866", "cp866", "csibm866", "ibm866" 'ibm866' "csisolatin2", "iso-8859-2", "iso-ir-101", "iso8859-2", "iso88592", "iso_8859-2", "iso_8859-2:1987", "l2", "latin2" 'iso-8859-2' "csisolatin3", "iso-8859-3", "iso-ir-109", "iso8859-3", "iso88593", "iso_8859-3", "iso_8859-3:1988", "l3", "latin3" 'iso-8859-3' ...
URL.origin - Web APIs
the origin read-only property of the url interface returns a usvstring containing the
unicode serialization of the origin of the represented url.
URLUtilsReadOnly.origin - Web APIs
the urlutilsreadonly.origin read-only property is a domstring containing the
unicode serialization of the origin of the represented url, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified).
window.postMessage() - Web APIs
for idn host names only, the value of the origin property is not consistently
unicode or punycode; for greatest compatibility check for both the idn and punycode values when using this property if you expect messages from idn sites.
::marker - CSS: Cascading Style Sheets
::marker { color: blue; font-size: 1.2em; } allowable properties only certain css properties can be used in a rule with ::marker as a selector: all font properties the white-space property color text-combine-upright,
unicode-bidi and direction properties the content property all animation and transition properties the specification states that additional css properties may be supported in future.
prefers-reduced-data - CSS: Cascading Style Sheets
sorigin> <link rel="stylesheet" href="style.css"> </head> css @media (prefers-reduced-data: no-preference) { @font-face { font-family: montserrat; font-style: normal; font-weight: 400; font-display: swap; /* latin */ src: local('montserrat regular'), local('montserrat-regular'), url('fonts/montserrat-regular.woff2') format('woff2');
unicode-range: u+0000-00ff, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+2000-206f, u+2074, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd; } } body { font-family: montserrat, -apple-system, blinkmacsystemfont, "segoe ui", roboto, helvetica, arial, "microsoft yahei", sans-serif, "apple color emoji", "segoe ui emoji", "segoe ui symbol"; } result specifications ...
CSS Fonts - CSS: Cascading Style Sheets
e font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-variation-settings font-weight line-height at-rules @font-face font-family font-feature-settings font-style font-variant font-weight font-stretch src
unicode-range @font-feature-values guides fundamental text and font styling in this beginner's learning article we go through all the basic fundamentals of text/font styling in detail, including setting font weight, family and style, font shorthand, text alignment and other effects, and line and letter spacing.
CSS Writing Modes - CSS: Cascading Style Sheets
reference properties direction glyph-orientation-horizontal text-combine-upright text-orientation
unicode-bidi writing-mode specifications specification status comment css writing modes module level 3 proposed recommendation css level 2 (revision 1) recommendation css level 1 recommendation initial definition ...
CSS reference - CSS: Cascading Style Sheets
ntext-overflowtext-renderingtext-shadowtext-transformtext-underline-offsettext-underline-position<time><time-percentage><timing-function>top@top-centertouch-actiontransformtransform-box<transform-function>transform-origintransform-styletransitiontransition-delaytransition-durationtransition-propertytransition-timing-functiontranslatetranslate()translate3d()translatex()translatey()translatez()turnu
unicode-bidi
unicode-range (@font-face)unset<url>url()user-zoom (@viewport)v:validvar()vertical-alignvh@viewportviewport-fit (@viewport)visibility:visitedvmaxvminvwwwhite-spacewidowswidthwidth (@viewport)will-changeword-breakword-spacingword-wrapwriting-modexxzz-indexzoom (@viewport)others--* selectors the following are the various selectors, which allow styles to be conditional based on various featur...
hyphens - CSS: Cascading Style Sheets
suggesting line break opportunities there are two
unicode characters used to manually specify potential line break points within text: u+2010 (hyphen) the "hard" hyphen character indicates a visible line break opportunity.
HTML attribute: pattern - HTML: Hypertext Markup Language
it must be a valid javascript regular expression, as used by the regexp type, and as documented in our guide on regular expressions; the 'u' flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of
unicode code points, instead of as ascii.
<input type="number"> - HTML: Hypertext Markup Language
if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use
unicode bidirectional algorithm formatting characters to override directionality within the placeholder; see overriding bidi using
unicode control characters in the
unicode bidirectional text algorithm for those characters.
<wbr> - HTML: Hypertext Markup Language
in particular, it behaves like a
unicode bidi bn code point, meaning it has no effect on bidi-ordering: <div dir=rtl>123,<wbr>456</div> displays, when not broken on two lines, 123,456 and not 456,123.
dir - HTML: Hypertext Markup Language
this attribute can be overridden by the css properties direction and
unicode-bidi, if a css page is active and the element supports these properties.
Quantifiers - JavaScript
note: in the following, item refers not only to singular characters, but also includes character classes,
unicode property escapes, groups and ranges.
SyntaxError: JSON.parse: bad parsing - JavaScript
message syntaxerror: json.parse: unterminated string literal syntaxerror: json.parse: bad control character in string literal syntaxerror: json.parse: bad character in string literal syntaxerror: json.parse: bad
unicode escape syntaxerror: json.parse: bad escape character syntaxerror: json.parse: unterminated string syntaxerror: json.parse: no number after minus sign syntaxerror: json.parse: unexpected non-digit syntaxerror: json.parse: missing digits after decimal point syntaxerror: json.parse: unterminated fractional number syntaxerror: json.parse: missing digits after exponent indicator syntaxerror: json.parse: missing digits after exponent sign syntaxerror: json.parse: exponent part is missing a...
Intl.DisplayNames.prototype.of() - JavaScript
if the type is "language", code should be a languagecode ["-" scriptcode] ["-" regioncode ] *("-" variant ) subsequence of the
unicode_language_id grammar in uts 35's
unicode language and locale identifiers grammar.
Intl.Locale.prototype.region - JavaScript
examples setting the region in the locale identifer string argument the region is the third part of a valid
unicode language identifier string, and can be set by adding it to the locale identifier string that is passed into the locale constructor.
Proxy - JavaScript
get the "doccookies" object here: https://developer.mozilla.org/docs/dom/document.cookie#a_little_framework.3a_a_complete_cookies_reader.2fwriter_with_full_
unicode_support */ var doccookies = new proxy(doccookies, { get: function (otarget, skey) { return otarget[skey] || otarget.getitem(skey) || undefined; }, set: function (otarget, skey, vvalue) { if (skey in otarget) { return false; } return otarget.setitem(skey, vvalue); }, deleteproperty: function (otarget, skey) { if (skey in otarget) { return false; } return otarget.remo...
String.fromCharCode() - JavaScript
however, this set of characters, known as the base multilingual plane (bmp), is only 1/17th of the total addressable
unicode code points.
String length - JavaScript
unicode since `length` counts code units instead of characters, if you want to get the number of characters you need something like this: function getcharacterlength (str) { // the string iterator that is used here iterates over characters, // not mere code units return [...str].length; } console.log(getcharacterlength('a\ud87e\udc04z')); // 3 // while not recommended, you could add this to ea...
String.prototype.toLocaleLowerCase() - JavaScript
in most cases, this will produce the same result as tolowercase(), but for some locales, such as turkish, whose case mappings do not follow the default case mappings in
unicode, there may be a different result.
String.prototype.toLocaleUpperCase() - JavaScript
in most cases, this will produce the same result as touppercase(), but for some locales, such as turkish, whose case mappings do not follow the default case mappings in
unicode, there may be a different result.
escape() - JavaScript
(hh are two hexadecimal digits, and the form \xhh\xhh is used for higher-plane
unicode characters.) escaped characters in string literals can be expanded by replacing the \x with %, then using the decodeuricomponent() function.
Less than (<) - JavaScript
if both values are strings, they are compared as strings, based on the values of the
unicode code points they contain.
dir - Web app manifests
the dir member can be set to one of the following values: auto — text direction is determined by the user agent ltr — left to right rtl — right to left the directionality-capable members are: name short_name description note: if the value is omitted or set to auto, the browser will use the
unicode bidirectional algorithm to make a best guess about the text's direction.
Authoring MathML - MathML
in particular, the mozilla mathml team has been developing texzilla, a javascript
unicode latex-to-mathml converter that is intended to be used in many scenarios described here.
<mglyph> - MathML
the mathml <mglyph> element is used to display non-standard symbols where existing
unicode characters are not available.
MathML documentation index - MathML
16 <mglyph> mathml, mathml reference, mathml:element the mathml <mglyph> element is used to display non-standard symbols where existing
unicode characters are not available.
glyph-name - SVG: Scalable Vector Graphics
the glyph names can be used in situations where
unicode character numbers do not provide sufficient information to access the correct glyph, such as when there are multiple glyphs per
unicode character.
writing-mode - SVG: Scalable Vector Graphics
(note that the inline-progression-direction can change within a <text> element due to the
unicode bidirectional algorithm and properties direction and
unicode-bidi.) note: as a presentation attribute, writing-mode can be used as a css property.
<font-face> - SVG: Scalable Vector Graphics
attributes global attributes core attributes specific attributes font-family font-style font-variant font-weight font-stretch font-size
unicode-range units-per-em panose-1 stemv stemh slope cap-height x-height accent-height ascent descent widths bbox ideographic alphabetic mathematical hanging v-ideographic v-alphabetic v-mathematical v-hanging underline-position underline-thickness strikethrough-position strikethrough-thickness overline-position overline-thickness dom interface this element implements the sv...