Halfwidth and fullwidth forms

A command prompt (cmd.exe) with Korean localisation, showing halfwidth and fullwidth characters

In CJK (Chinese, Japanese, and Korean) computing, graphic characters are traditionally classed into fullwidth[a] and halfwidth[b] characters. Unlike monospaced fonts, a halfwidth character occupies half the width of a fullwidth character, hence the name.

Halfwidth and Fullwidth Forms is also the name of a Unicode block U+FF00–FFEF, provided so that older encodings containing both halfwidth and fullwidth characters can have lossless translation to and from Unicode.

Rationale

Characters which appear in both JIS X 0201 (single byte) and JIS X 0208 / JIS X 0213 (double byte) have both a halfwidth and a fullwidth form in Shift JIS.

In the days of text mode computing, Western characters were normally laid out in a grid on the screen, often 80 columns by 24 or 25 lines. Each character was displayed as a small dot matrix, often about 8 pixels wide, and a SBCS (single-byte character set) was generally used to encode characters of Western languages.

For aesthetic reasons and readability, it is preferable for Chinese characters to be approximately square-shaped, therefore twice as wide as these fixed-width SBCS characters. As these were typically encoded in a DBCS (double-byte character set), this also meant that their width on screen in a duospaced font was proportional to their byte length. Some terminals and editing programs could not deal with double-byte characters starting at odd columns, only even ones (some could not even put double-byte and single-byte characters in the same line). So the DBCS sets generally included Roman characters and digits also, for use alongside the CJK characters in the same line.

On the other hand, early Japanese computing used a single-byte code page called JIS X 0201 for katakana. These would be rendered at the same width as the other single-byte characters, making them half-width kana characters rather than normally proportioned kana. Although the JIS X 0201 standard itself did not specify half-width display for katakana, this became the visually distinguishing feature in Shift JIS between the single-byte JIS X 0201 and double-byte JIS X 0208 katakana. Some IBM code pages used a similar treatment for Korean jamo,[1] based on the N-byte Hangul code and its EBCDIC translation.

In Unicode

For compatibility with existing character sets that contained both half- and fullwidth versions of the same character, Unicode allocated a single block at U+FF00–FFEF containing the necessary "alternative width" characters. This includes a fullwidth version of all the ASCII characters and some non-ASCII punctuation such as the Yen sign, halfwidth versions of katakana and hangul, and halfwidth versions of some other symbols such as circles. Only characters needed for lossless round trip to existing character sets were allocated, rather than (for instance) making a fullwidth version of every Latin accented character.

Unicode assigns every code point an "East Asian width" property. This may be:[2]

Unicode character properties based on width
Abbreviation Name Description
W Wide Naturally wide character, e.g. Hiragana.
Na Narrow Naturally narrow character, e.g. ISO Basic Latin alphabet.
F Fullwidth Wide variant with compatibility normalisation to naturally narrow character, e.g. fullwidth Latin script.
H Halfwidth Narrow variant with compatibility normalisation to naturally wide character, e.g. half-width kana. Includes U+20A9 () as an exception.
A Ambiguous Characters included in East Asian DBCS codes but also in European SBCS codes, e.g. Greek alphabet. Duospaced behaviour can consequently vary.
N Neutral Characters which do not appear in East Asian DBCS codes, e.g. Devanagari.

Terminal emulators can use this property to decide whether a character should consume one or two "columns" when figuring out tabs and cursor position.

In OpenType

OpenType has the fwid, halt, hwid, and vhal feature tags to be used to reproduce fullwidth or halfwidth form of a character. CSS provides control over these features using font-variant-east-asian and font-feature-settings properties.[3]

See also

Notes

  1. ^ In Taiwan and Hong Kong: 全形; in CJK: 全角.
  2. ^ In Taiwan and Hong Kong: 半形; in CJK: 半角.

References

  1. ^ "ICU Demonstration - Converter Explorer". demo.icu-project.org. Retrieved 7 May 2018.
  2. ^ Lunde, Ken (2019-01-25). "Unicode® Standard Annex #11: East Asian Width". Unicode Consortium.
  3. ^ "Syntax for OpenType features in CSS". Adobe. Retrieved 2023-09-20.

Read other articles:

Flydubai Flight 981 Vrakdelar av flygplanet vid landningsbarnanOlyckssammanfattningDatum19 mars, 2016TypPilotfel[1], utredning pågårPlatsRostov-na-Donu flygplats, Rostov-na-Donu, Ryssland47°15′54.7″N 39°49′43.8″Ö / 47.265194°N 39.828833°Ö / 47.265194; 39.828833Passagerare55Besättning7Omkomna62 (alla)[2]Överlevande0FlygplanstypBoeing 737-8KNFlygbolagFlydubaiRegistreringA6-FDNStartDubais internationella flygplats, Dubai, Förenade EmeratarabienDestinati...

43°46′24″N 11°15′19″E / 43.773288°N 11.255307°E / 43.773288; 11.255307 بطولة العالم لسباق الدراجات على الطريق 2013 معلومات عامة الرياضة سباق الدراجات على الطريق الاتحاد المشرف الاتحاد الدولي للدراجات (UCI) الدورة 86 المستضيف  إيطاليا (فلورنسا) التاريخ 22–29 سبتمبر 2013 حفل الاختتام 29 سبتمب...

British Overseas Territory in the Leeward Islands This article is about the Caribbean British Overseas Territory. For other uses, see Anguilla (disambiguation). Not to be confused with Anguillita or Antigua. British Overseas Territory in United KingdomAnguillaBritish Overseas Territory FlagCoat of armsMotto: Unity, Strength and EnduranceAnthem: God Save the KingNational song: God Bless AnguillaLocation of Anguilla (red)Sovereign state United KingdomEnglish control1667Feder...

Лес-Ковес-де-Вінромаваленс. Les Coves de Vinromà, ісп. Cuevas de Vinromá Герб {{{official_name}}}ГербFlag of {{{official_name}}}ПрапорМуніципалітетКраїна  ІспаніяАвтономна спільнота ВаленсіяПровінція КастельйонКоординати 40°18′29″ пн. ш. 0°07′23″ сх. д. / 40.308° пн. ш. 0.123° сх. д.þ...

Dudley, Stourbridge and District Electric Tramways CompanyPreserved tramcar No 5 at the Black Country Living MuseumOperationLocaleDudley, StourbridgeOpen26 July 1899Close1 March 1930StatusClosedInfrastructureTrack gauge3 ft 6 in (1,067 mm)Propulsion system(s)ElectricDepot(s)Stourbridge Road, AmblecoteStatisticsRoute length21.24 miles (34.18 km) The Dudley, Stourbridge and District Electric Tramways Company operated an electric tramway service between Dudley and Stourb...

Parliamentary constituency in the United Kingdom, 1885–1983 Thirsk and MaltonFormer County constituencyfor the House of CommonsThirsk and Malton in North Yorkshire 1918–50CountyNorth YorkshireMajor settlementsPickering, Filey, Thirsk, Easingwold, Malton1885–1983SeatsOneCreated fromThirsk and Malton; preceded by North Riding of YorkshireReplaced byRyedale, Richmond (Yorks), Selby and Skipton and Ripon[1] Thirsk and Malton was a constituency[n 1] represented in the House o...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أبريل 2019) ماتياس كول (بالألمانية: Matthias Kaul)‏  معلومات شخصية الميلاد 29 يناير 1949  هامبورغ  تاريخ الوفاة 1 يوليو 2020 (71 سنة)   مواطنة ألمانيا  الحياة الفنية المدر�...

Este artigo não cita fontes confiáveis. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW  • CAPES  • Google (N • L • A) (Maio de 2012) Act of Valor Ato de Valor (PRT)Ato de Coragem (BRA) Act of ValorPôster promocional  Estados Unidos2012 •  101 min  Gênero ação Direção Mike McCoyScott Waugh Roteiro Kurt Johnstad Elenco Roselyn SánchezNestor Serra...

هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى المقالات المتعلقة بها الموجودة في النص الحالي. (ديسمبر 2018) هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة...

Indian Bengali language historical Web series Muktiমুক্তিGenreHistorical period DramaWritten by Soumit Deb Joydip Banerjee Rohan Ghose Directed byRohan GhoseStarring Ritwick Chakraborty Arjun Chakrabarty Ditipriya Roy Music byIndradeep DasguptaCountry of originIndiaOriginal languageBengaliNo. of seasons1No. of episodes9ProductionCinematographyIndranath MarickEditorAnirban MaityRunning time45 minutesProduction companyFatfish Entertainment Mukti is an Indian Bengali language histori...

United States historic placeAitkin Carnegie LibraryU.S. National Register of Historic Places Show map of MinnesotaShow map of the United StatesLocation121 2nd St., NWAitkin, MinnesotaCoordinates46°31′59.57″N 93°42′32.81″W / 46.5332139°N 93.7091139°W / 46.5332139; -93.7091139Built1911ArchitectClaude & StarckArchitectural styleClassical RevivalMPSAitkin County MRANRHP reference No.82002924[1]Added to NRHPApril 16, 1982 The Aitkin Ca...

Ferry terminal in San Francisco, California San Francisco Ferry BuildingThe Ferry Building, along the Embarcadero. Treasure Island, Yerba Buena Island, and the Bay Bridge can be seen in the background, with Embarcadero Plaza and the foot of Market Street in the foreground.General informationLocation1 Ferry BuildingSan Francisco, CaliforniaCoordinates37°47′44″N 122°23′37″W / 37.7955°N 122.3937°W / 37.7955; -122.3937Owned byPort of San FranciscoLine(s) Golden...

Croatian water polo club HAVK MladostFounded1946; 77 years ago (1946)LeagueCroatian LeagueRegional League A1LEN Euro CupBased inZagreb, CroatiaPresidentBoris LabarHead coachZoran BajićWebsitehavk-mladost.hr Hrvatski akademski vaterpolo klub Mladost (English: Croatian Academic Water Polo Club Mladost) or simply HAVK Mladost is a professional water polo club based in Zagreb, Croatia. The club was formed in 1946 and it is part of the Mladost sports society.[1] As of th...

Consonantal sound represented by ⟨ɳ⟩ in IPA Retroflex nasal redirects here. For the voiceless consonant, see Voiceless retroflex nasal. Voiced retroflex nasalɳIPA Number117Audio sample source · helpEncodingEntity (decimal)ɳUnicode (hex)U+0273X-SAMPAn`Braille Image The voiced retroflex nasal is a type of consonantal sound, used in some spoken languages. The symbol in the International Phonetic Alphabet that represents this sound is ⟨ɳ ⟩, and th...

Japanese voice actress This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) Some of this article's listed sources may not be reliable. Please help this article by looking for better, more reliable sources. Unreliable citations may be challenged or deleted. (April 2019) (Learn how and when to remove this template message) This biography of a living person needs additional citations for verifica...

Economy of MalaysiaKuala Lumpur, national capital of Malaysia, and its largest cityCurrencyRinggit (MYR, RM)Fiscal yearCalendar yearTrade organisationsAPEC, ASEAN, IOR-ARC, WTO, JETRO, RCEP, CPTPP, EAS, AFTACountry group Developing/Emerging[1] Upper-middle income country [2] Newly industrialized country StatisticsPopulation 33,938,221 (2022)[3]GDP $430.895 billion (nominal; 2023 est.)[4] $1.226 trillion (PPP; 2023 est.)[4] GDP rank 36th (nominal; 2023) ...

American video player Raymond RizzoRizzo in 2010Personal informationNickname(s)RayBorn1992 or 1993 (age 29–31)[1]NationalityAmericanCareer informationGamePokémonCareer highlights and awards World Champion (2010, 2011, 2012) Raymond Rizzo is a three-time Pokémon Video Game World Champion (2010, 2011, 2012).[2] He is regarded as one of the best players of competitive Pokémon of his time.[3] His success can be partly attributed to his team building s...

Indian Konkani language film industry This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Konkani cinema – news · newspapers · books · scholar · JSTOR (August 2021) (Learn how and when to remove this template message) Konkani cinemaProduced feature films (2015)Total53 Indian cinema Assamese (Jollywood) Bada...

Ecorregión de agua dulce Patagonia El lago Nahuel Huapi, de origen glaciar, es compartido por las provincias argentinas de Neuquén y Río Negro; ecorregión de agua dulce Patagonia.Ecozona: NeotropicalPaíses  Argentina Chile Chile Ecorregiones – WWF[editar datos en Wikidata] La ecorregión de agua dulce Patagonia (348) es una georregión ecológica acuática continental situada en el sur de América del Sur. Se la incluye en la ecozona Neotropical.[1]​[2]​...

Type of sweet tart An Argentine pastafrola in a baking tray Pasta frola, pasta frolla (Greek: πάστα φλώρα),[1][2] is a type of sweet tart common to Italy, Argentina, Paraguay, Uruguay, Egypt and Greece.[3][2] It is a covered, jam-filled shortcrust pastry dish principally made from flour, sugar and egg.[4] Common fillings include quince cheese, dulce de batata (sweet potato jam), dulce de leche, guava, or strawberry jam.[1] The covering...