Ayuda: Extensión: WebFonts

From mediawiki.org
This page is a translated version of the page Help:Extension:WebFonts and the translation is 43% complete.
Outdated translations are marked like this.

Esta es la documentación de usuario para la funcionalidad de las fuentes web (web fonts). Documentación técnica para la extensión de Fuentes Web también está disponible.

Muchos scripts para los idiomas no tienen fuentes propias de fácil acceso. Esto puede ser debido a que los sistemas operativos no tiene las fuentes instaladas y el usuario no sabe cómo instalarlos, o porque el usuario está leyendo el wiki de un equipo compartido sin las fuentes necesarias instaladas. Por todas estas razones, siempre que el contenido de ciertas lenguas se enfrenta a problemas. Fuentes Web resuelve este mediante la incorporación de las fuentes en las páginas wiki. Las fuentes se descargan automáticamente de modo que la experiencia de que finalice la lectura y el lector no ve un galimatías, signos de interrogación o cuadrados en lugar de letras.

Uso

Menú de WebFonts para un usuario anónimo

Cuando la extensión está instalada y habilitada, tras el inicio de sesión, las preferencias de enlace en la página wiki, aparecerá un menú para seleccionar una fuente de la página. De forma predeterminada, la primera fuente de dicho menú se aplica a la wiki. Un usuario puede cambiar la fuente y se recordará a través de las páginas. Opcionalmente, el usuario puede desactivar también la incrustación de fuentes, esta elección también será recordado en todas las páginas, incluso para las visitas siguientes durante 30 días. El menú no aparecerá si no hay texto en la página en un idioma WebFonts soportado por la extensión.

Si el tipo de letra está disponible en el sistema local del usuario, no se descargará del servidor con MediaWiki, sino que se tomará del sistema. De lo contrario, el tipo de letra se descargará del servidor la primera vez que se necesite. Posteriormente, el tipo de letra se tomará de la antememoria local.

Desactivar web fonts

Para desactivar WebFonts cuando no se inicia sesion: abrir el menú Fuentes Web y seleccione la opción inferior "⧼webFonts-reset⧽" (ver imagen). Esto inhabilita la funcionalidad utilizando una cookie de 30 días. Archivos almacenados en caché de la fuente puede quedar representado para los estilos "font-family" .

Desactivar WebFonts cuando has iniciado sesion: "Preferences" ‎→ "Appearance" ‎→ Desmarcar opcion "⧼webfonts-enable-preference⧽" ‎→ Click "Save" para guardar tu configuracion.

Lista de escrituras, idiomas y tipografías admitidas

Web fonts esta soportado por muchos scripts, A continuación puede encontrar una lista exhaustiva de todos los scripts que actualmente son soportados y las lenguas que están activas por defecto.

Escritura árabe

Supported languages:

persa (fa)

  • Iranian Sans

Escritura bengalí

Supported languages:

bengalí (bn), asamés (as), Bishnupriya (bpy)

  • Lohit Bengali (predet.)
  • Lohit Assamese

Escritura devanagari

Supported languages:

hindi (hi), maratí (mr), maithili (mai), Bhojpuri (bh, bho), Goan Konkani (gom), Ahirani (ahr)

  • Lohit Devanagari
  • Samyak Devanagari (not available in menu because of rendering issues)
  • Madan (not available in menu because of rendering issues)

Ethiopic (Geʻez) script

Supported languages:

amárico (am), tigriña (ti)

  • AbyssinicaSIL

Gujarati script

  • Lohit Gujarati
  • Samyak Gujarati

Gurmukhi script

  • Lohit Punjabi
  • Saab

Escritura hebrea

  • Miriam CLM
  • Taamey Frank CLM

Escritura jemer

Supported languages:

Khmer (km).

jemer (km)

  • KhmerOSbattambang
  • KhmerOSbokor
  • KhmerOSfreehand
  • KhmerOSmuol
  • KhmerOSmuollight
  • KhmerOSmuolpali
  • KhmerOSsiemreap

Kannada script

Supported languages:

canarés (kn), Tulu (tcy)

  • Lohit Kannada
  • Kedage

Escritura latina

  • Charis SIL - soporta chino Min Dong
  • Perizia
  • RufScript
  • Ubuntu - tipo de letra estilizado hecho por Ubuntu

Malayalam script

  • AnjaliOldLipi
  • Meera
  • RaghuMalayalam

Myanmar (Burmese) script

  • Masterpiece Uni Sans
  • Myanmar3
  • Padauk-Regular
  • Yunghkio

Oriya script

  • Lohit Oriya
  • Utkal

Saurashtra script

  • Pagul

Tamil script

  • Lohit Tamil
  • Thendral
  • Thenee

Telugu script

  • Lohit Telugu
  • Pothana2000
  • Vemana2000

Uso avanzado

There are two ways in wiki text to trigger web fonts functionality. Text can be tagged with a language code and with a specific font style. When language tagging is used, the default web font for that language will be used. Language tagging is necessary when the language is different from the language of a page. Language tagging is encouraged, because it will also lead to improved search engine results, spell-checking, speech synthesis, speech recognition, etc.

To mark a paragraph of text as Hindi and load the default web font for it:

Texto original Resultado
<div lang="hi">नमूना पाठ</div>
नमूना पाठ

To mark a paragraph of text as Hindi and load the non-standard web font "Samyak Devanagari" for it:

Texto original Resultado
<div lang="hi" style="font-family: 'Samyak Devanagari'">नमूना पाठ</div>
नमूना पाठ

Limitaciones y problemas conocidos

Even if a browser supports web fonts, there is no guarantee that it can render the text correctly. This is often a problem for example in Indic scripts, where the glyphs are not just placed one after another without any changes, like in Latin and Cyrillic scripts. The correct rendering and rendering quality also depend on the browser and the operating system that is used. Modern web browsers and operating systems like recent Linux desktop distributions, Mac OS X and Windows 7 perform pretty well, but older web browsers (like Internet Explorer 6) and operating systems like Windows XP may provide a sub-optimal user experience.

Because of the flash of unstyled text (FOUT) that happens on first load, this technology gets unpractical if the font files grow very big. This currently prevents adding fonts for Chinese for example. The WebFonts extension does not support partial font downloading, where only those glyphs that are used in the page would be loaded.

Web fonts are currently not supported for Internet Explorer 6 on any Windows version or Internet Explorer 8 on Windows XP because of known issues.

A list of known issues is in the MediaWiki bug tracker.

New scripts, languages and translations

Only free fonts can be used for web fonts. The font license must allow redistributing the font and converting it to another formats. SIL Open Font License is preferred. Bugs or bad rendering caused by missing hinting information in the font may prevent using a font as a web font. If you are aware of a suitable font, please request it to be added in the bug tracker.

Please report all issues in the bug tracker and translate this functionality at translatewiki.net.