Misplaced Pages

Tilde: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 07:54, 5 November 2024 editJMF (talk | contribs)Extended confirmed users56,848 edits Undid revision 1255457787 by Landfree2024 (talk) RV test or somethingTags: Undo Mobile edit Mobile web edit Advanced mobile edit← Previous edit Latest revision as of 08:43, 30 December 2024 edit undoCitation bot (talk | contribs)Bots5,432,564 edits Removed URL that duplicated identifier. | Use this bot. Report bugs. | Suggested by Nail123Real | #UCB_webform 
(13 intermediate revisions by 11 users not shown)
Line 7: Line 7:
|mark=~{{nbsp}}◌̃ |mark=~{{nbsp}}◌̃
|name=Tilde (symbol), Combining tilde (]) |name=Tilde (symbol), Combining tilde (])
|unicode={{unichar|007E|html=}}<br />{{unichar|0303|cwith=◌}} |unicode={{unichar|007E|html=}}<br />{{unichar|0303|cwith=◌}}
|see also= |see also=
]<br /> ]<br />
Line 14: Line 14:
{{Orthography notation}} {{Orthography notation}}


The '''tilde''' ({{IPAc-en|"|t|I|l|d|@}}, also {{IPAc-en|"|t|I|l|d|,_|-|d|i||,_|-|d|eI}})<ref>{{Cite book|title=The Chambers Dictionary|publisher=Chambers|year=2003|isbn=0-550-10105-5|edition=9th|chapter=tilde}}</ref> is a ] {{angbr|'''˜'''}} or {{angbr|'''~'''}} with a number of uses. The name of the character came into ] from ] {{wikt-lang|es|tilde}}, which in turn came from the ] {{wikt-lang|la|titulus}}, meaning 'title' or 'superscription'.<ref>{{AHDict|tilde}}</ref> Its primary use is as a ] (accent) in combination with a base letter. Its freestanding form is used in modern texts mainly to indicate ]. The '''tilde''' ({{IPAc-en|"|t|I|l|d|@}}, also {{IPAc-en|"|t|I|l|d|,_|-|d|i||,_|-|d|eI}})<ref>{{Cite book|title=The Chambers Dictionary|publisher=Chambers|year=2003|isbn=0-550-10105-5|edition=9th|chapter=tilde}}</ref> is a ] {{angbr|'''˜'''}} or {{angbr|'''~'''}} with a number of uses. The name of the character came into ] from ] {{wikt-lang|es|tilde}}, which in turn came from the ] {{wikt-lang|la|titulus}}, meaning 'title' or 'superscription'.<ref>{{Cite American Heritage Dictionary|tilde}}</ref> Its primary use is as a ] (accent) in combination with a base letter. Its freestanding form is used in modern texts mainly to indicate ].


==History== ==History==
Line 51: Line 51:
| colspan=2 style="font-size:small" |A free-standing tilde between two em dashes<br/>in three font families | colspan=2 style="font-size:small" |A free-standing tilde between two em dashes<br/>in three font families
|} |}
The first ] standard (X3.64-1963) did not have a tilde.<ref name="Mackenzie_1980">{{cite book |url=https://textfiles.meulie.net/bitsaved/Books/Mackenzie_CodedCharSets.pdf |title=Coded Character Sets, History and Development |series=The Systems Programming Series |author-last=Mackenzie |author-first=Charles E. |date=1980 |edition=1 |publisher=] |isbn=978-0-201-14460-4 |lccn=77-90165 |access-date=2019-08-25 |archive-url=https://web.archive.org/web/20160526172151/https://textfiles.meulie.net/bitsaved/Books/Mackenzie_CodedCharSets.pdf |archive-date=May 26, 2016 |url-status=live |df=mdy-all }}</ref>{{rp|246}} Like Portuguese and Spanish, the French, German and Scandinavian languages also needed symbols in excess of the basic 26 needed for English. The ] worked with and through the ] to internationalize the code-set, to meet the basic needs of at least the Western European languages. The first ] standard (X3.64-1963) did not have a tilde.<ref name="Mackenzie_1980">{{cite book |url=https://textfiles.meulie.net/bitsaved/Books/Mackenzie_CodedCharSets.pdf |title=Coded Character Sets, History and Development |series=The Systems Programming Series |author-last=Mackenzie |author-first=Charles E. |date=1980 |edition=1 |publisher=] |isbn=978-0-201-14460-4 |lccn=77-90165 |access-date=2019-08-25 |archive-url=https://web.archive.org/web/20160526172151/https://textfiles.meulie.net/bitsaved/Books/Mackenzie_CodedCharSets.pdf |archive-date=May 26, 2016 |url-status=live |df=mdy-all }}</ref>{{rp|246}} Like Portuguese and Spanish, the French, German and Scandinavian languages also needed symbols in excess of the basic 26 needed for English. The ] worked with and through the ] to internationalize the code-set, to meet the basic needs of at least the Western European languages.


{{blockquote|It appears to have been at their May 13–15, 1963 meeting that the CCITT decided that the proposed ISO 7-bit code standard would be suitable for their needs if a lower case alphabet and five diacritical marks were added to it.<ref>{{cite web |title=Meeting of CCITT Working Party on the New Telegraph Alphabet |url= https://www.cl.cam.ac.uk/~mgk25/ucs/ascii-history/ccit.html |publisher=CCITT |date=May 15, 1963}} See Paragraph 3.</ref> At the October 29–31 meeting, then, the ISO subcommittee altered the ISO draft to meet the CCITT requirements, replacing the up-arrow and left-arrow with diacriticals, adding diacritical meanings to the apostrophe and quotation mark, and making the ] a dual{{efn|alternative association for the same ]}} for the tilde.<ref>{{cite web |title=Memorandum to Members, Alternates, and Consultants of A.S.A. X3.2 and task groups |vauthors=((L. L. Griffin, Chairman, X3.2)) | publisher=US Department of the Navy |url=https://www.cl.cam.ac.uk/~mgk25/ucs/ascii-history/iso.html |page=8 |date=29 November 1963}}</ref>|source=Yucca's free information site (which cites the original sources).<ref>{{cite web|url=https://jkorpela.fi/latin1/ascii-hist.html#60|title=Character histories: notes on some ASCII code positions}}</ref>}} {{blockquote|It appears to have been at their May 13–15, 1963 meeting that the CCITT decided that the proposed ISO 7-bit code standard would be suitable for their needs if a lower case alphabet and five diacritical marks were added to it.<ref>{{cite web |title=Meeting of CCITT Working Party on the New Telegraph Alphabet |url= https://www.cl.cam.ac.uk/~mgk25/ucs/ascii-history/ccit.html |publisher=CCITT |date=May 15, 1963}} See Paragraph 3.</ref> At the October 29–31 meeting, then, the ISO subcommittee altered the ISO draft to meet the CCITT requirements, replacing the up-arrow and left-arrow with diacriticals, adding diacritical meanings to the apostrophe and quotation mark, and making the ] a dual{{efn|alternative association for the same ]}} for the tilde.<ref>{{cite web |title=Memorandum to Members, Alternates, and Consultants of A.S.A. X3.2 and task groups |vauthors=((L. L. Griffin, Chairman, X3.2)) | publisher=US Department of the Navy |url=https://www.cl.cam.ac.uk/~mgk25/ucs/ascii-history/iso.html |page=8 |date=29 November 1963}}</ref>|source=Yucca's free information site (which cites the original sources).<ref>{{cite web|url=https://jkorpela.fi/latin1/ascii-hist.html#60|title=Character histories: notes on some ASCII code positions}}</ref>}}
Line 72: Line 72:
==Usage== ==Usage==
=== Letters with tilde<span class="anchor" id="Letters with tilde"></span> === === Letters with tilde<span class="anchor" id="Letters with tilde"></span> ===
Unicode encodes a number of cases of "letter with tilde" as ]s and these are displayed below. In addition, many more symbols may be composed using the ] facility ({{unichar|0303|Combining tilde|cwith=◌|nlink=combining character}}, {{unichar|0330|Combining tilde below|cwith=◌|nlink=combining character}} and others) that may be used with any letter or other diacritic to create a customised symbol but this does not mean that the result has any real-world application and are not shown in the table. <!-- AND PLEASE DO NOT TRY TO ADD THEM --> Unicode encodes a number of cases of "letter with tilde" as ]s and these are displayed below. In addition, many more symbols may be composed using the ] facility ({{unichar|0303|Combining tilde|cwith=◌|nlink=combining character}}, {{unichar|0330|Combining tilde below|cwith=◌|nlink=combining character}} and others) that may be used with any letter or other diacritic to create a customised symbol but this does not mean that the result has any real-world application and are not shown in the table. <!-- AND PLEASE DO NOT TRY TO ADD THEM -->
{{Letters with diacritic/header}}<!-- {{Letters with diacritic/header}}<!--
-->{{hlist|{{Letters with diacritic/diacritic|format=char|d=tilde}}<!-- -->{{hlist|{{Letters with diacritic/diacritic|format=char|d=tilde}}<!--
Line 114: Line 114:
{{Letters with diacritic/footer}} {{Letters with diacritic/footer}}


A tilde diacritic can be added to almost any character by using a ] tilde. Greek and Cyrillic letters with tilde (], ], ], ῗ, ], ῧ and ], ], ], ], ], ], ]) are formed using this method. A tilde diacritic can be added to almost any character by using a ] tilde. Greek and Cyrillic letters with tilde (], ], ], ῗ, ], ῧ and ], ], ], ], ], ], ]) are formed using this method.


===Common use in English<span class="anchor" id="Common use"></span>=== ===Common use in English<span class="anchor" id="Common use"></span>===
Line 124: Line 124:
as a way of making it clear that both the author and reader are aware that the enclosed phrase – "spirit of the season" – "is cliche and we know this quality is beneath our author, and we don't want you to think our author is a cliche person generally".<ref name=Bernstein />{{efn|See also ].}} as a way of making it clear that both the author and reader are aware that the enclosed phrase – "spirit of the season" – "is cliche and we know this quality is beneath our author, and we don't want you to think our author is a cliche person generally".<ref name=Bernstein />{{efn|See also ].}}


Among other uses, the symbol has been used on ] to ].<ref>{{cite web |title=The Internet Tilde Perfectly Conveys Something We Don't Have the Words to Explain |author= Jess Kimball Leslie | date=June 5, 2017 |website=The Cut |url=https://www.thecut.com/article/why-the-internet-tilde-is-our-most-perfect-tool-for-snark.html}}</ref> It may also be used online, especially in informal writing such as ], to convey a cutesy, playful, or flirtatious tone.<ref>{{cite web |title=What Are Tildes ( ~ ) And How Do You Use Them? | date=April 12, 2022 |website=Thesaurus.com |url=https://www.thesaurus.com/e/grammar/tildes/}}</ref> Among other uses, the symbol has been used on ] to ].<ref>{{cite web |title=The Internet Tilde Perfectly Conveys Something We Don't Have the Words to Explain |author= Jess Kimball Leslie | date=June 5, 2017 |website=The Cut |url=https://www.thecut.com/article/why-the-internet-tilde-is-our-most-perfect-tool-for-snark.html}}</ref> It may also be used online, especially in informal writing such as ], to convey a cutesy, playful, or flirtatious tone.<ref>{{cite web |title=What Are Tildes ( ~ ) And How Do You Use Them? | date=April 12, 2022 |website=Thesaurus.com |url=https://www.thesaurus.com/e/grammar/tildes/}}</ref>
<!-- Advice to contributors: please do not add your personal experience of memes and the like, unless you can support it by citing a reliable third party source. See wikipedia policy "Misplaced Pages:No original research". --> <!-- Advice to contributors: please do not add your personal experience of memes and the like, unless you can support it by citing a reliable third party source. See wikipedia policy "Misplaced Pages:No original research". -->


Line 131: Line 131:


====Pitch==== ====Pitch====
The tilde was firstly used in the ] of ], as a variant of the ], representing a rise in ] followed by a return to standard pitch.{{Citation needed|date=October 2024}} The tilde was firstly used in the ] of ], as a variant of the ], representing a rise in ] followed by a return to standard pitch.<ref>{{Cite book |last=Peek |first=Philip S. |url=https://books.openbookpublishers.com/10.11647/obp.0264/ch3.xhtml |title=Ancient Greek I: A 21st Century Approach; Module 3 - Accents and Accenting Verbs I |date=2021-10-19 |publisher=Open Book Publishers |isbn=978-1-80064-655-1 |pages=19–26 |doi=10.11647/OBP.0264.03 |doi-access=free |oclc=1277513901}}</ref>


====Abbreviation==== ====Abbreviation====
]'' showing Finnish economy, with the captions {{lang|la|Hic fabricantur naves}} and {{lang|la|Hic fabricantur ]}} abbreviated]] ]'' showing Finnish economy, with the captions {{lang|la|Hic fabricantur naves}} and {{lang|la|Hic fabricantur ]}} abbreviated]]
Later, it was used to make ] in medieval ] documents. When an {{angle bracket|n}} or {{angle bracket|m}} followed a vowel, it was often omitted, and a tilde (physically, a small {{angle bracket|N}}) was placed over the preceding vowel to indicate the missing letter; this is the origin of the use of tilde to indicate nasalization (compare ] as an abbreviation of {{angle bracket|e}}.) The practice of using the tilde over a vowel to indicate omission of an {{angle bracket|n}} or {{angle bracket|m}} continued in printed books in ] as a means of reducing text length until the 17th century. It was also used in ] and ].{{Citation needed|date=October 2024}} Later, it was used to make ] in medieval ] documents. When an {{angle bracket|n}} or {{angle bracket|m}} followed a vowel, it was often omitted, and a tilde (physically, a small {{angle bracket|N}}) was placed over the preceding vowel to indicate the missing letter; this is the origin of the use of tilde to indicate nasalization (compare ] as an abbreviation of {{angle bracket|e}}.){{Citation needed|date=December 2024|reason=Seemingly contradicted by Reimer (2015)}} A tilde represented an omitted {{angle bracket|a}} or a syllable containing it.<ref name="Reimer2015">{{Cite web |last=Reimer |first=Stephen R. |date=30 May 2015 |title=IV.vi. Paleography: Scribal Abbreviations |url=https://sites.ualberta.ca/~sreimer/ms-course/course/abbrevtn.htm |archive-url=https://web.archive.org/web/20241129100307/https://sites.ualberta.ca/~sreimer/ms-course/course/abbrevtn.htm |archive-date=2024-11-29 |access-date=2024-12-05 |website=Manuscript Studies: Medieval and Early Modern}}</ref> The practice of using the tilde over a vowel to indicate omission of an {{angle bracket|n}} or {{angle bracket|m}} continued in printed books in ] as a means of reducing text length until the 17th century. It was also used in ] and ].{{Citation needed|date=October 2024}}


The tilde was also used occasionally to make other abbreviations, such as over the letter {{angle bracket|q}}, making {{char|q̃}}, ] ("that").{{Citation needed|date=October 2024}} The tilde was also used occasionally to make other abbreviations, such as over the letter {{angle bracket|q}}, making {{char|q̃}}, ] ("that"){{Citation needed|date=December 2024|reason=Seemingly contradicted by Reimer (2015)}}. It also appears for ''qua'' and together with the letter {{angle bracket|p}} to form {{char|p̃}} for ''pra''.<ref name="Reimer2015" />


====Nasalization==== ====Nasalization====
Line 148: Line 148:
====Palatal n==== ====Palatal n====
{{main|Ñ}} {{main|Ñ}}
The tilded {{angle bracket|n}} ({{angle bracket|ñ}}, {{angle bracket|Ñ}}) developed from the digraph {{angle bracket|nn}} in Spanish. In this language, {{angle bracket|ñ}} is considered a separate letter called '']'' ({{IPA|es|ˈeɲe|IPA}}), rather than a letter-diacritic combination; it is placed in Spanish dictionaries between the letters {{angle bracket|n}} and {{angle bracket|o}}. In Spanish, the word ''tilde'' actually refers to diacritics in general, e.g. the acute accent in ''José'',<ref>{{cite book |title=Ortografía de la lengua española |year=2010 |publisher=Real Academia Española |location=Madrid |isbn=978-84-670-3426-4 |page=279 }}</ref> while the diacritic in {{angle bracket|ñ}} is called "virgulilla" ({{IPA|es|birɣuˈliʝa|IPA}}) (]) or ({{IPA|es|birɣuˈliʎa|IPA}}) (non-yeísta). <ref>{{Cite web |url=http://lema.rae.es/drae/?val=virgulilla |title=Lema en la RAE |publisher=] |access-date=10 October 2015}}</ref> Current languages in which the tilded {{angle bracket|n}} ({{angle bracket|ñ}}) is used for the ] consonant {{IPA|/ɲ/}} include The tilded {{angle bracket|n}} ({{angle bracket|ñ}}, {{angle bracket|Ñ}}) developed from the digraph {{angle bracket|nn}} in Spanish. In this language, {{angle bracket|ñ}} is considered a separate letter called '']'' ({{IPA|es|ˈeɲe|IPA}}), rather than a letter-diacritic combination; it is placed in Spanish dictionaries between the letters {{angle bracket|n}} and {{angle bracket|o}}. In Spanish, the word ''tilde'' actually refers to diacritics in general, e.g. the acute accent in ''José'',<ref>{{cite book |title=Ortografía de la lengua española |year=2010 |publisher=Real Academia Española |location=Madrid |isbn=978-84-670-3426-4 |page=279 }}</ref> while the diacritic in {{angle bracket|ñ}} is called "virgulilla" ({{IPA|es|birɣuˈliʝa|IPA}}) (]) or ({{IPA|es|birɣuˈliʎa|IPA}}) (non-yeísta). <ref>{{Cite web |url=http://lema.rae.es/drae/?val=virgulilla |title=Lema en la RAE |publisher=] |access-date=10 October 2015}}</ref> Current languages in which the tilded {{angle bracket|n}} ({{angle bracket|ñ}}) is used for the ] consonant {{IPA|/ɲ/}} include
{{div col|colwidth=8em}} {{div col|colwidth=8em}}
* ] * ]
Line 181: Line 181:
====Letter extension==== ====Letter extension====
In ], the symbol {{angle bracket|õ}} stands for the ], and it is considered an independent letter. In ], the symbol {{angle bracket|õ}} stands for the ], and it is considered an independent letter.

==== Modern Usage ====
In modern ], the tilde can be used to signify endearment or love, i.e. "Hello master~". It is commonly used in the ] and ] communities and can also be used as a diminutive, akin to adding the "ee" sound to the end of a word.{{citation needed|date=October 2024}}


====Other uses==== ====Other uses====
Some languages and alphabets use the tilde for other purposes, such as: Some languages and alphabets use the tilde for other purposes, such as:
* ]: A symbol resembling the tilde ({{unichar|0653|ARABIC MADDAH ABOVE|cwith=ـ|nlink=Arabic diacritics#Maddah}}) is used over the letter {{angle bracket|ا}} ({{IPA|/a/}}) to become <big>{{angle bracket|]}}</big>, denoting a long {{IPA|/ʔaː/}} sound. * ]: A symbol resembling the tilde ({{unichar|0653|ARABIC MADDAH ABOVE|cwith=ـ|nlink=Arabic diacritics#Maddah}}) is used over the letter {{angle bracket|ا}} ({{IPA|/a/}}) to become <big>{{angle bracket|]}}</big>, denoting a long {{IPA|/ʔaː/}} sound.
* ]: The tilded {{angle bracket|]}} (note that {{angle bracket|G/g}} with tilde is not available as a precomposed glyph in ]) stands for the ] consonant. Also, the tilded {{angle bracket|y}} ({{angle bracket|Ỹ}}) stands for the nasalized upper central rounded vowel {{IPA|}}. ], Parintintín, and two older spellings of Filipino words also use {{angle bracket|g̃}}. * ]: The tilded {{angle bracket|]}} (note that {{angle bracket|G/g}} with tilde is not available as a precomposed glyph in ]) stands for the ] consonant. Also, the tilded {{angle bracket|y}} ({{angle bracket|Ỹ}}) stands for the nasalized upper central rounded vowel {{IPA|}}. ], Parintintín, and two older spellings of Filipino words also use {{angle bracket|g̃}}.
* ]: A tilde (~) under the letter '']'' represents a {{IPA|}} sound, transliterated as ''ch'' or ''č''.<ref>] (1888). ''Syrische Grammatik mit Litteratur, Chrestomathie und Glossar''. Berlin: H. Reuther's Verlagsbuchhandlung. .</ref> * ]: A tilde (~) under the letter '']'' represents a {{IPA|}} sound, transliterated as ''ch'' or ''č''.<ref>] (1888). ''Syrische Grammatik mit Litteratur, Chrestomathie und Glossar''. Berlin: H. Reuther's Verlagsbuchhandlung. .</ref>
* ] and ] use the tilde above the letter o ('''õ''') to indicate the vowel {{IPA|}}, a rare sound among languages. * ] and ] use the tilde above the letter o ('''õ''') to indicate the vowel {{IPA|}}, a rare sound among languages.
Line 202: Line 199:
The '''range tilde''' is used for various purposes in ], but only to denote ranges of numbers (e.g., {{lang|fr|«&nbsp;21~32 degrés Celsius&nbsp;»}}" means "21 to 32 degrees Celsius"){{cn|date=May 2024}} The '''range tilde''' is used for various purposes in ], but only to denote ranges of numbers (e.g., {{lang|fr|«&nbsp;21~32 degrés Celsius&nbsp;»}}" means "21 to 32 degrees Celsius"){{cn|date=May 2024}}


(The symbol {{unichar|2248}} (a ]) is also used in French, for example, {{lang|fr|«&nbsp;≈400 mètres&nbsp;»}} means "approximately 400 meters"{{cn|date=May 2024}}.) (The symbol {{unichar|2248}} (a ]) is also used in French, for example, {{lang|fr|«&nbsp;≈400 mètres&nbsp;»}} means "approximately 400 meters"{{cn|date=May 2024}}.)


==== Approximation ==== ==== Approximation ====
{{see also|Approximation}} {{see also|Approximation}}
Before a number the tilde can mean 'approximately'; '~42' means 'approximately 42'.<ref> Before a number the tilde can mean 'approximately'; '~42' means 'approximately 42'.<ref>
{{Cite web | url = http://www.linfo.org/tilde.html | title = Tilde Definition | website=linfo.org | publisher = The Linux Information Project | date = 24 June 2005 | access-date= 27 January 2020}}</ref> When used with ]s that precede the number (national conventions differ), the tilde precedes the symbol, thus for example '~$10' means 'about ten dollars'.<ref>{{Cite web {{Cite web | url = http://www.linfo.org/tilde.html | title = Tilde Definition | website=linfo.org | publisher = The Linux Information Project | date = 24 June 2005 | access-date= 27 January 2020}}</ref> When used with ]s that precede the number (national conventions differ), the tilde precedes the symbol, thus for example '~$10' means 'about ten dollars'.<ref>{{Cite web
|url=https://english.stackexchange.com/questions/116048/using-a-tilde-with-currency |title=Using a tilde with currency|website=]}}</ref>{{better source|reason=Not a reliable source|date=February 2024}} |url=https://english.stackexchange.com/questions/116048/using-a-tilde-with-currency |title=Using a tilde with currency|website=]}}</ref>{{better source|reason=Not a reliable source|date=February 2024}}


Line 217: Line 214:
The {{Nihongo|'''wave dash'''|波ダッシュ|nami dasshu}} is used for various purposes in Japanese, including to denote ranges of numbers (e.g., ''5〜10'' means between 5 and 10) in place of dashes or brackets, and to indicate origin. The wave dash is also used to separate a title and a subtitle in the same line, as a ] is used in English. The {{Nihongo|'''wave dash'''|波ダッシュ|nami dasshu}} is used for various purposes in Japanese, including to denote ranges of numbers (e.g., ''5〜10'' means between 5 and 10) in place of dashes or brackets, and to indicate origin. The wave dash is also used to separate a title and a subtitle in the same line, as a ] is used in English.


When used in conversations via email or instant messenger it may be used as a ] {{citation needed|date=January 2024}}. When used in conversations via email or instant messenger it may be used as a ] {{citation needed|date=January 2024}}.


The sign is used as a replacement for the {{transliteration|ja|]}}, katakana character, in Japanese, extending the final syllable. The sign is used as a replacement for the {{transliteration|ja|]}}, katakana character, in Japanese, extending the final syllable.
Line 232: Line 229:
| alt2 = Previous Unicode wave dash (incorrect) | alt2 = Previous Unicode wave dash (incorrect)
| caption2 = Previous Unicode wave dash (incorrect) | caption2 = Previous Unicode wave dash (incorrect)
| footer = | footer =
}} }}
In practice the {{Nihongo|full-width tilde|全角チルダ|zenkaku chiruda}} (Unicode {{unichar|FF5E|fullwidth tilde}}), is often used instead of the {{Nihongo|wave dash|波ダッシュ|nami dasshu}} (Unicode {{unichar|301C|wave dash}}), because the ] code for the wave dash, 0x8160, which should be mapped to U+301C,<ref>{{Citation | chapter-url = http://x0213.org/codetable/sjis-0213-2004-std.txt | title = JIS X 0213:2004 | chapter = Appendix 1: Shift_JIS-2004 vs Unicode mapping table | publisher = X 0213}}.</ref><ref>{{Citation | url = https://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/SHIFTJIS.TXT | title = Shift-JIS to Unicode | publisher = Unicode}}.</ref> is instead mapped to U+FF5E<ref>{{cite web|url=http://www.microsoft.com/globaldev/reference/dbcs/932/932_81.htm |title=Windows 932_81 |publisher=Microsoft | access-date=2010-07-30}}</ref> in ] (]'s ] for Japanese), a widely used extension of Shift JIS. In practice the {{Nihongo|full-width tilde|全角チルダ|zenkaku chiruda}} (Unicode {{unichar|FF5E|fullwidth tilde}}), is often used instead of the {{Nihongo|wave dash|波ダッシュ|nami dasshu}} (Unicode {{unichar|301C|wave dash}}), because the ] code for the wave dash, 0x8160, which should be mapped to U+301C,<ref>{{Citation | chapter-url = http://x0213.org/codetable/sjis-0213-2004-std.txt | title = JIS X 0213:2004 | chapter = Appendix 1: Shift_JIS-2004 vs Unicode mapping table | publisher = X 0213}}.</ref><ref>{{Citation | url = https://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/SHIFTJIS.TXT | title = Shift-JIS to Unicode | publisher = Unicode}}.</ref> is instead mapped to U+FF5E<ref>{{cite web|url=http://www.microsoft.com/globaldev/reference/dbcs/932/932_81.htm |title=Windows 932_81 |publisher=Microsoft | access-date=2010-07-30}}</ref> in ] (]'s ] for Japanese), a widely used extension of Shift JIS.


This decision avoided a shape definition error in the original (6.2) Unicode code charts:<ref name="U6.2">{{Citation |url=http://www.unicode.org/charts/PDF/U3000.pdf |archive-url=https://web.archive.org/web/20130827100409if_/http://www.unicode.org/charts/PDF/U3000.pdf |archive-date=2013-08-27 | title = CJK Symbols and Punctuation (Unicode 6.2) | type = chart | publisher = Unicode}}.</ref> the wave dash reference glyph in JIS / Shift JIS<ref>{{cite iso-ir |number=87 |title=Japanese Graphic Character Set for Information Interchange |id-in-title=yes |sponsor=Japanese National Committee on ISO/TC97/SC2}}</ref><ref name="jisplane1">{{cite iso-ir | number = 233 | title = Japanese Graphic Character Set for Information Interchange, Plane 1 (Update of ISO-IR 228)| id-in-title = yes | sponsor = Japanese Industrial Standards Committee | sponsor-link = Japanese Industrial Standards Committee}}</ref> matches the Unicode reference glyph for U+FF5E {{resize|FULLWIDTH TILDE}},<ref>{{Citation | url = https://www.unicode.org/charts/PDF/UFF00.pdf | title = Halfwidth and Fullwidth Forms | type = chart | publisher = Unicode}}.</ref> while the original reference glyph for U+301C<ref name="U6.2" /> was reflected, incorrectly,<ref name="errata8">{{citation|url=https://www.unicode.org/versions/Unicode8.0.0/erratafixed.html|title=Errata Fixed in Unicode 8.0.0|publisher=Unicode}}</ref> when Unicode imported the JIS wave dash. In other platforms such as the ] and ], 0x8160 is correctly mapped to U+301C. It is generally difficult, if not impossible, for users of Japanese Windows to type U+301C, especially in legacy, non-Unicode applications. This decision avoided a shape definition error in the original (6.2) Unicode code charts:<ref name="U6.2">{{Citation |url=http://www.unicode.org/charts/PDF/U3000.pdf |archive-url=https://web.archive.org/web/20130827100409if_/http://www.unicode.org/charts/PDF/U3000.pdf |archive-date=2013-08-27 | title = CJK Symbols and Punctuation (Unicode 6.2) | type = chart | publisher = Unicode}}.</ref> the wave dash reference glyph in JIS / Shift JIS<ref>{{cite iso-ir |number=87 |title=Japanese Graphic Character Set for Information Interchange |id-in-title=yes |sponsor=Japanese National Committee on ISO/TC97/SC2}}</ref><ref name="jisplane1">{{cite iso-ir | number = 233 | title = Japanese Graphic Character Set for Information Interchange, Plane 1 (Update of ISO-IR 228)| id-in-title = yes | sponsor = Japanese Industrial Standards Committee | sponsor-link = Japanese Industrial Standards Committee}}</ref> matches the Unicode reference glyph for U+FF5E {{resize|FULLWIDTH TILDE}},<ref>{{Citation | url = https://www.unicode.org/charts/PDF/UFF00.pdf | title = Halfwidth and Fullwidth Forms | type = chart | publisher = Unicode}}.</ref> while the original reference glyph for U+301C<ref name="U6.2" /> was reflected, incorrectly,<ref name="errata8">{{citation|url=https://www.unicode.org/versions/Unicode8.0.0/erratafixed.html|title=Errata Fixed in Unicode 8.0.0|publisher=Unicode}}</ref> when Unicode imported the JIS wave dash. In other platforms such as the ] and ], 0x8160 is correctly mapped to U+301C. It is generally difficult, if not impossible, for users of Japanese Windows to type U+301C, especially in legacy, non-Unicode applications.


A similar situation exists regarding the Korean ] character set, in which Microsoft maps the ] or ] code for the wave dash (0xA1AD) to {{unichar|223C|Tilde Operator}},<ref>{{cite web|url=https://icu4c-demos.unicode.org/icu-bin/convexp?conv=windows-949-2000&b=A1&s=ALL#layout|title=windows-949-2000 (lead byte A1)|work=ICU Demonstration – Converter Explorer|publisher=International Components for Unicode}}</ref><ref name="mskrtilde">{{cite web|url=https://msdn.microsoft.com/en-us/library/cc194958.aspx|title=Lead Byte A1-A2 (Code page 949)|work=MSDN|date=6 February 2008 |publisher=Microsoft}}</ref> while ] and ] map it to U+301C.<ref>{{cite web|url=https://icu4c-demos.unicode.org/icu-bin/convexp?conv=ibm-1363_P110-1997&b=A1&s=ALL#layout|title=ibm-1363_P110-1997 (lead byte A1)|work=ICU Demonstration – Converter Explorer|publisher=International Components for Unicode}}</ref><ref>{{cite web|url=https://icu4c-demos.unicode.org/icu-bin/convexp?conv=euc-kr&b=A1&s=ALL#layout|title=euc-kr (lead byte A1)|work=ICU Demonstration – Converter Explorer|publisher=International Components for Unicode}}</ref><ref name="applekrtilde">{{cite web|url=https://unicode.org/Public/MAPPINGS/VENDORS/APPLE/KOREAN.TXT|title=Map (external version) from Mac OS Korean encoding to Unicode 3.2 and later.|publisher=Apple}}</ref> Microsoft also uses U+FF5E to map the KS X 1001 raised tilde (0xA2A6),<ref name="mskrtilde" /> while Apple uses {{unichar|02DC|small tilde}}.<ref name="applekrtilde" /> A similar situation exists regarding the Korean ] character set, in which Microsoft maps the ] or ] code for the wave dash (0xA1AD) to {{unichar|223C|Tilde Operator}},<ref>{{cite web|url=https://icu4c-demos.unicode.org/icu-bin/convexp?conv=windows-949-2000&b=A1&s=ALL#layout|title=windows-949-2000 (lead byte A1)|work=ICU Demonstration – Converter Explorer|publisher=International Components for Unicode}}</ref><ref name="mskrtilde">{{cite web|url=https://msdn.microsoft.com/en-us/library/cc194958.aspx|title=Lead Byte A1-A2 (Code page 949)|work=MSDN|date=6 February 2008 |publisher=Microsoft}}</ref> while ] and ] map it to U+301C.<ref>{{cite web|url=https://icu4c-demos.unicode.org/icu-bin/convexp?conv=ibm-1363_P110-1997&b=A1&s=ALL#layout|title=ibm-1363_P110-1997 (lead byte A1)|work=ICU Demonstration – Converter Explorer|publisher=International Components for Unicode}}</ref><ref>{{cite web|url=https://icu4c-demos.unicode.org/icu-bin/convexp?conv=euc-kr&b=A1&s=ALL#layout|title=euc-kr (lead byte A1)|work=ICU Demonstration – Converter Explorer|publisher=International Components for Unicode}}</ref><ref name="applekrtilde">{{cite web|url=https://unicode.org/Public/MAPPINGS/VENDORS/APPLE/KOREAN.TXT|title=Map (external version) from Mac OS Korean encoding to Unicode 3.2 and later.|publisher=Apple}}</ref> Microsoft also uses U+FF5E to map the KS X 1001 raised tilde (0xA2A6),<ref name="mskrtilde" /> while Apple uses {{unichar|02DC|small tilde}}.<ref name="applekrtilde" />
Line 243: Line 240:


The JIS / Shift JIS wave dash is still formally mapped to U+301C as of ],<ref>{{Citation | url=http://x0213.org/codetable/sjis-0213-2004-std.txt | title=Shift_JIS-2004 (JIS X 0213:2004 Appendix 1) vs Unicode mapping table | publisher=x0213.org}}</ref> whereas the ] Encoding Standard used by ] follows Microsoft in mapping 0x8160 to U+FF5E.<ref>{{citation | url=https://encoding.spec.whatwg.org/shift_jis.html | title=Shift_JIS visualization | work=Encoding Standard | publisher=WHATWG}}</ref> These two code points have a similar or identical glyph in several fonts, reducing the confusion and incompatibility. The JIS / Shift JIS wave dash is still formally mapped to U+301C as of ],<ref>{{Citation | url=http://x0213.org/codetable/sjis-0213-2004-std.txt | title=Shift_JIS-2004 (JIS X 0213:2004 Appendix 1) vs Unicode mapping table | publisher=x0213.org}}</ref> whereas the ] Encoding Standard used by ] follows Microsoft in mapping 0x8160 to U+FF5E.<ref>{{citation | url=https://encoding.spec.whatwg.org/shift_jis.html | title=Shift_JIS visualization | work=Encoding Standard | publisher=WHATWG}}</ref> These two code points have a similar or identical glyph in several fonts, reducing the confusion and incompatibility.

====Chinese====

] users frequently replace final punctuations with tildes in messages. An analysis of such "innovative uses" of tildes found that final tildes are most used to make the message friendlier and polite. They make expressives more sincere and directives less abrupt. Less commonly, final tildes imply sounds, i.e. otomatopeas and sound extensions. This use is compared to ''sajiao'' ({{Lang-zh|s=撒娇}}), a child-like acting seen in East Asian cultures that are also vocalized by raising or extending tone.<ref>{{Cite journal |last1=Xu |first1=Huan |last2=Xia |first2=Dengshan |date=2023-09-01 |title=Digital tildes ("∼") may convey more: analyzing innovative uses of tildes in Chinese WeChat messages |journal=Language and Semiotic Studies |language=en |volume=9 |issue=3 |pages=443–460 |doi=10.1515/lass-2023-0009 |issn=2751-7160|doi-access=free }}</ref>


===Mathematics=== ===Mathematics===
Line 282: Line 283:
A tilde is also used in ] to denote the hypothetical ] partner. For example, an ] is referred to by the letter ''e'', and its ] the ] is written ''ẽ''. A tilde is also used in ] to denote the hypothetical ] partner. For example, an ] is referred to by the letter ''e'', and its ] the ] is written ''ẽ''.


In multibody mechanics, the tilde operator maps three-dimensional vectors <math>\boldsymbol{\omega}\in\mathbb{R}^3</math> to skew-symmetrical matrices <math>\tilde{\boldsymbol{\omega}}=\begin{bmatrix}0&-\omega_3& \omega_2\\ \omega_3& 0& -\omega_1\\ -\omega_2&\omega_1&0\end{bmatrix}</math> (see <ref>{{cite journal |last1=Wallrapp |title=Standardization of flexible body modeling in multibody system codes, Part I: Definition of Standard Input Data |date=1994 |volume=22 |issue=3 |pages=283–304 |doi=10.1080/08905459408905214 |journal=Mechanics of Structures and Machines}}</ref> or <ref>{{cite journal |last1=Valembois |first1=R. E. |last2=Fisette |first2=P. |last3=Samin |first3=J. C. |title=Comparison of Various Techniques for Modelling Flexible Beams in Multibody Dynamics |journal=Nonlinear Dynamics |date=1997 |volume=12 |issue=4 |pages=367–397 |doi=10.1023/A:1008204330035|s2cid=122487067 }}</ref>). In multibody mechanics, the tilde operator maps three-dimensional vectors <math>\boldsymbol{\omega}\in\mathbb{R}^3</math> to skew-symmetrical matrices <math>\tilde{\boldsymbol{\omega}}=\begin{bmatrix}0&-\omega_3& \omega_2\\ \omega_3& 0& -\omega_1\\ -\omega_2&\omega_1&0\end{bmatrix}</math> (see <ref>{{cite journal |last1=Wallrapp |title=Standardization of flexible body modeling in multibody system codes, Part I: Definition of Standard Input Data |date=1994 |volume=22 |issue=3 |pages=283–304 |doi=10.1080/08905459408905214 |journal=Mechanics of Structures and Machines}}</ref> or <ref>{{cite journal |last1=Valembois |first1=R. E. |last2=Fisette |first2=P. |last3=Samin |first3=J. C. |title=Comparison of Various Techniques for Modelling Flexible Beams in Multibody Dynamics |journal=Nonlinear Dynamics |date=1997 |volume=12 |issue=4 |pages=367–397 |doi=10.1023/A:1008204330035|bibcode=1997NonDy..12..367V |s2cid=122487067 }}</ref>).


===Economics=== ===Economics===
Line 312: Line 313:


=====Regex===== =====Regex=====
The tilde is used in the ] ] as part of the pattern match operators for ]s: The tilde is used in the ] ] as part of the pattern match operators for ]s:<ref>{{cite web |title=The GNU Awk User's Guide |website=GNU Manuals Online |url=https://www.gnu.org/software/gawk/manual/html_node/Regexp-Usage.html |publisher=Free Software Foundation, Inc. |access-date=2024-10-20 |at=3.1 How to Use Regular Expressions}}</ref>
*<code>''variable'' ~ /''regex''/</code> returns true if the variable is matched. *<code>''variable'' ~ /''regex''/</code> returns true if the variable is matched.
*<code>''variable'' !~ /''regex''/</code> returns false if the variable is matched. *<code>''variable'' !~ /''regex''/</code> returns false if the variable is matched.


The operators are also used in the ] variant of the database ].<ref>{{cite web |title=PostgreSQL 17.0 Documentation |author=The PostgreSQL Global Development Group |date=2024-09-26 |url=https://www.postgresql.org/docs/17/index.html |access-date=2024-10-20 |at=}}</ref>
A variant of this, with the plain tilde replaced with <code>=~</code>, was adopted in ], and this semi-standardization has led to the use of these operators in other programming languages, such as ] or the ] variant of the database ].


A variant of this, with the plain tilde replaced with <code>=~</code>, was adopted in ]<ref>{{cite web |title=Perl expressions: operators, precedence, string literals |website=Perldoc Browser |url=https://perldoc.perl.org/5.40.0/perlop |access-date=2024-10-20 |at=}}</ref><!--, and this semi-standardization has led to the use of these operators in other programming languages-->. ] also uses this variant without the negated operator.<ref>{{cite web |title=class Regexp |work=Documentation for Ruby 3.3 |url=https://docs.ruby-lang.org/en/3.3/Regexp.html |access-date=2024-10-20}}</ref>
In ] and ], tilde represents the monadic logical function NOT, and in APL it additionally represents the dyadic ] function ''without'' (]).


In ]<ref name="j303">{{cite web |title=APL2 Programming: Language Reference |publisher=] |url=https://www.ibm.com/downloads/cas/ZOKMYKOY |date=February 1994 |edition=2nd |access-date=2024-10-22}}</ref>{{rp|68}} and ],<ref>{{cite web |title=MATLAB Operators and Special Characters - MATLAB & Simulink |website=MathWorks |url=https://www.mathworks.com/help/matlab/matlab_prog/matlab-operators-and-special-characters.html |access-date=2024-10-22}}</ref> tilde represents the monadic logical function NOT. and in APL it additionally represents the dyadic ] function ''without'' (]).<ref name="j303"/>{{rp|258}}
In ] the tilde character is used as ] unary ], following the notation in logic (an <code>!</code> causes a logical NOT, instead). This is also used by most languages based on or influenced by C, such as ], ], ] and ]. The ] also use tilde as bitwise invert<ref>{{Cite web|url=https://dev.mysql.com/doc/refman/8.0/en/bit-functions.html#operator_bitwise-invert|title=MySQL :: Reference Manual :: Bit Functions and Operators|website=dev.mysql.com|access-date=2019-12-20}}</ref> as does Microsoft's SQL Server ] language. {{anchor|~~ cast}} ] also uses tilde as bitwise NOT, and because JavaScript internally uses floats and the bitwise complement only works on integers, numbers are stripped of their decimal part before applying the operation. This has also given rise to using two tildes <code>~~x</code> as a short syntax for a cast to integer (numbers are stripped of their decimal part and changed into their complement, and then back).


In ] the tilde character is used as ] unary ], following the notation in logic (an <code>!</code> causes a logical NOT, instead).<ref>{{cite web |title=Programming languages — C |url=https://files.lhmouse.com/standards/ISO%20C%20N2176.pdf |author=ISO/IEC |access-date=2024-10-19 |page=64 }}</ref> This is also used by many languages based on or influenced by C, such as ], ], ], ], ], ], and ].<ref name="rigaux">{{Cite web |title=syntax across languages (One Big Page) |url=https://rigaux.org/language-study/syntax-across-languages.html |access-date=2024-11-28 |website=rigaux.org |archive-url=https://web.archive.org/web/20240823220158/http://rigaux.org/language-study/syntax-across-languages.html |archive-date=2024-08-23}}</ref> The ] also use tilde as bitwise invert<ref>{{Cite web|url=https://dev.mysql.com/doc/refman/8.0/en/bit-functions.html#operator_bitwise-invert|title=MySQL :: Reference Manual :: Bit Functions and Operators|website=dev.mysql.com|access-date=2019-12-20}}</ref> as does Microsoft's SQL Server ] language.
In C++ and C#, the tilde is also used as the first character in a ]'s ] name (where the rest of the name must be the same name as the class) to indicate a ] – a special method which is called at the end of the ].


{{anchor|~~ cast}} ] also uses tilde as bitwise NOT. Because bitwise operators work on integers, and numbers in JavaScript are 64 bit floating point numbers, the operator converts numbers to a 32-bit signed integer before it performing the negation.<ref>{{Cite web |title=JavaScript Bitwise Operations |url=https://www.w3schools.com/js/js_bitwise.asp |access-date=2024-11-28 |website=W3Schools |language=en-US |archive-url=https://web.archive.org/web/20241128173553/https://www.w3schools.com/js/js_bitwise.asp |archive-date=2024-11-28}}</ref> The conversion truncates the fractional part and most significant bits. This lets two tildes <code>~~x</code> to be used as a short syntax to cast to integer. However, it is not recommended as use for truncation. In contrast, it does not truncate BigInts, which are arbitrarily large integers.<ref>{{Cite web |date=2023-08-15 |title=Bitwise NOT (~) - JavaScript |url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_NOT |access-date=2024-11-28 |website=MDN |language=en-US |archive-url=https://web.archive.org/web/20241128173342/https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_NOT |archive-date=2024-11-28}}</ref>
In ASP.NET application tilde ('~') is used as a shortcut to the root of the application's virtual directory.


In C++<ref>{{Cite web |date=2023-12-01 |title=Destructors (C++) |url=https://learn.microsoft.com/en-us/cpp/cpp/destructors-cpp?view=msvc-170 |access-date=2024-11-28 |website=Microsoft Learn |publisher=] |language=en-us |archive-url=https://web.archive.org/web/20241128170724/https://learn.microsoft.com/en-us/cpp/cpp/destructors-cpp?view=msvc-170 |archive-date=2024-11-28}}</ref> and C#,<ref>{{Cite web |date=2023-03-14 |title=Finalizers (C# Programming Guide) |url=https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/finalizers |access-date=2024-11-28 |website=Microsoft Learn |publisher=] |language=en-us |archive-url=https://web.archive.org/web/20241117135601/https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/finalizers |archive-date=2024-11-17}}</ref> the tilde is also used as the first character in a ]'s ] name (where the rest of the name must be the same name as the class) to indicate a ] – a special method which is called at the end of the ].
In the ] stylesheet language, the tilde is used for the indirect adjacent combinator as part of a selector.


In ASP.NET applications, tilde ('~') is used as a shortcut to the root of the application's virtual directory.<ref>{{Cite web |date=2022-06-03 |title=ASP.NET Core built-in Tag Helpers |url=https://learn.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/?view=aspnetcore-9.0 |access-date=2024-11-28 |website=Microsoft Learn |publisher=] |language=en-us |archive-url=https://web.archive.org/web/20241128180850/https://learn.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/?view=aspnetcore-9.0 |archive-date=2024-11-28}}</ref>
In the ], the tilde is used as an ] ] operator, as well as to indicate an object destructor and bitwise not operator. Tilde operator can be overloaded for user types, and binary tilde operator is mostly used to merging two objects, or adding some objects to set of objects. It was introduced because plus operator can have different meaning in many situations. For example, what to do with "120" + "14" ? Is this a string "134" (addition of two numbers), or "12014" (concatenation of strings) or something else? D disallows + operator for arrays (and strings), and provides separate operator for concatenation (similarly ] programming language solved this problem by using dot operator for concatenation, and + for number addition, which will also work on strings containing numbers).


In the ] stylesheet language, the tilde finds the element selected by the right-hand side that shares the parent with an element selected by the left-hand side.<ref>{{Cite web |date=2022-11-11 |title=Selectors Level 4 |url=https://www.w3.org/TR/selectors-4/ |archive-url=https://web.archive.org/web/20241122212236/https://www.w3.org/TR/selectors-4/ |archive-date=2024-11-22 |access-date=2024-11-28 |publisher=CSS Working Group |at= |type=W3C Working Draft}}</ref>
In ], the tilde is used for object comparison. If ''a'' and ''b'' denote objects, the Boolean expression ''a'' ~ ''b'' has value true if and only if these objects are equal, as defined by the applicable version of the library routine ''is_equal'', which by default denotes field-by-field object equality but can be redefined in any class to support a specific notion of equality. If ''a'' and ''b'' are references, the object equality expression ''a'' ~ ''b'' is to be contrasted with ''a'' = ''b'' which denotes reference equality. Unlike the call ''a''.''is_equal'' (''b''), the expression ''a'' ~ ''b'' is ] even in the presence of ].

In the ], the tilde is used as bitwise not operator, ] operator such as those of ],<ref>{{Cite web |title=Expressions |url=https://dlang.org/spec/expression.html |archive-url=https://web.archive.org/web/20241128204134/https://dlang.org/spec/expression.html |archive-date=2024-11-28 |access-date=2024-11-28 |website=dlang.org}}</ref> and to indicate an object destructor.<ref>{{Cite web |title=Structs, Unions |url=https://dlang.org/spec/struct.html |archive-url=https://web.archive.org/web/20241128210801/https://dlang.org/spec/struct.html |archive-date=2024-11-28 |access-date=2024-11-28 |website=dlang.org}}</ref><ref>{{Cite web |title=Classes |url=https://dlang.org/spec/class.html |archive-url=https://web.archive.org/web/20241128210843/https://dlang.org/spec/class.html |archive-date=2024-11-28 |access-date=2024-11-28 |website=dlang.org}}</ref> Tilde operator can be overloaded for user types,<ref>{{Cite web |title=Operator Overloading |url=https://dlang.org/spec/operatoroverloading.html |archive-url=https://web.archive.org/web/20241128204128/https://dlang.org/spec/operatoroverloading.html |archive-date=2024-11-28 |access-date=2024-11-28 |website=dlang.org}}</ref> and binary tilde operator is mostly used to merging two objects, or adding some objects to set of objects. It was introduced because plus operator can have different meaning in many situations. For example, "120" + "14" may produce "134" (addition of two numbers), "12014" (concatenation of strings), or something else.<ref>{{Cite web |title=Arrays |url=https://dlang.org/spec/arrays.html |archive-url=https://web.archive.org/web/20241128204600/https://dlang.org/spec/arrays.html |archive-date=2024-11-28 |access-date=2024-11-28 |website=dlang.org}}</ref> D disallows + operator for arrays (and strings), and provides separate operator for concatenation (similarly ] programming language solved this problem by using dot operator for concatenation, and + for number addition, which will also work on strings containing numbers).

In ], the tilde is used for object comparison. If ''a'' and ''b'' denote objects, the Boolean expression ''a'' ~ ''b'' has value true if and only if these objects are equal, as defined by the applicable version of the library routine ''is_equal'', which by default denotes field-by-field object equality but can be redefined in any class to support a specific notion of equality.<ref>{{Cite web |date=June 2006 |title=Eiffel: Analysis, Design and Programming Language |url=https://www.ecma-international.org/wp-content/uploads/ECMA-367_2nd_edition_june_2006.pdf |archive-url=https://web.archive.org/web/20241128214008/https://www.ecma-international.org/wp-content/uploads/ECMA-367_2nd_edition_june_2006.pdf |archive-date=2024-11-28 |access-date=2024-11-28 |publisher=ECMA International |id=ECMA-367 |edition=2nd}}</ref>{{rp|114-115}} If ''a'' and ''b'' are references, the object equality expression ''a'' ~ ''b'' is to be contrasted with ''a'' = ''b'' which denotes reference equality. Unlike the call ''a''.''is_equal'' (''b''), the expression ''a'' ~ ''b'' is ] even in the presence of ].<!--{{Citation needed|date=November 2024}}-->


In the ] the tilde character is used as an operator mapped to the bitwiseNegate() method.<ref>{{cite web|url=http://groovy.codehaus.org/Operator%20Overloading|title=The Groovy programming language – Operators}}{{Dead link|date=September 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> Given a String the method will produce a java.util.regex.Pattern. Given an integer it will negate the integer bitwise like in C. <code>=~</code> and <code>==~</code> can in Groovy be used to match a regular expression.<ref>{{Citation | url = http://groovy.codehaus.org/Regular+Expressions | title = Groovy Regular Expression User Guide | publisher = Code haus | access-date = 11 November 2010 | archive-date = 26 July 2010 | archive-url = https://web.archive.org/web/20100726062443/http://groovy.codehaus.org/Regular+Expressions | url-status = dead }}.</ref><ref>{{Citation | url = http://groovy.codehaus.org/FAQ+-+RegExp | title = Groovy RegExp FAQ | publisher = Code haus | access-date = 11 November 2010 | archive-date = 11 July 2010 | archive-url = https://web.archive.org/web/20100711164313/http://groovy.codehaus.org/FAQ+-+RegExp | url-status = dead }}.</ref> In the ] the tilde character is used as an operator mapped to the bitwiseNegate() method.<ref>{{cite web|url=http://groovy.codehaus.org/Operator%20Overloading|title=The Groovy programming language – Operators}}{{Dead link|date=September 2023 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> Given a String the method will produce a java.util.regex.Pattern. Given an integer it will negate the integer bitwise like in C. <code>=~</code> and <code>==~</code> can in Groovy be used to match a regular expression.<ref>{{Citation | url = http://groovy.codehaus.org/Regular+Expressions | title = Groovy Regular Expression User Guide | publisher = Code haus | access-date = 11 November 2010 | archive-date = 26 July 2010 | archive-url = https://web.archive.org/web/20100726062443/http://groovy.codehaus.org/Regular+Expressions | url-status = dead }}.</ref><ref>{{Citation | url = http://groovy.codehaus.org/FAQ+-+RegExp | title = Groovy RegExp FAQ | publisher = Code haus | access-date = 11 November 2010 | archive-date = 11 July 2010 | archive-url = https://web.archive.org/web/20100711164313/http://groovy.codehaus.org/FAQ+-+RegExp | url-status = dead }}.</ref>


In ], the tilde is used in type constraints to indicate type equality.<ref>{{Citation | url = http://www.haskell.org/haskellwiki/GHC/Type_families#Equality_constraints | title = Haskell Wiki | contribution = Type Families}}.</ref> Also, in pattern-matching, the tilde is used to indicate a lazy pattern match.<ref>{{cite web|url=http://www.haskell.org/haskellwiki/Lazy_pattern_match|title=Lazy pattern match – HaskellWiki}}</ref> In ], the tilde is used in type constraints to indicate type equality.<ref>{{Citation | url = http://www.haskell.org/haskellwiki/GHC/Type_families#Equality_constraints | title = Haskell Wiki | contribution = Type Families}}.</ref> Also, in pattern-matching, the tilde is used to indicate a lazy pattern match.<ref>{{cite web|url=http://www.haskell.org/haskellwiki/Lazy_pattern_match|title=Lazy pattern match}}</ref>


In the ] programming language, the tilde is used to indicate a quotation mark inside a quoted string. <!-- but what does it use to indicate a ~ inside a quoted string? --> In the ] 6 programming language, the tilde is used to indicate a quotation mark inside a quoted string. Tilde itself is created by <code>@@126</code>.
<ref>{{Cite book |last=Nelson |first=Graham |date=July 2001 |title=Routines |url=https://www.inform-fiction.org/manual/html/s1.html |archive-url=https://web.archive.org/web/20240607185340/https://www.inform-fiction.org/manual/html/s1.html |archive-date=2024-06-07 |access-date=2024-11-28 |work=The Inform Designer's Manual |publisher=Interactive Fiction Library |isbn=0-9713119-0-0 |edition=4th}}</ref>


In "text mode" of the ] typesetting language a tilde diacritic can be obtained using, e.g., <code>\~{n}</code>, yielding "ñ". A stand-alone tilde can be obtained by using <code>\textasciitilde</code> or <code>\string~</code>. In "text mode" of the ] typesetting language a tilde diacritic can be obtained using, e.g., <code>\~{n}</code>, yielding "ñ". A stand-alone tilde can be obtained by using <code>\textasciitilde</code> or <code>\string~</code>.
Line 342: Line 348:
In both text and math mode, a tilde on its own (<code>~</code>) renders a white space with no line breaking. In both text and math mode, a tilde on its own (<code>~</code>) renders a white space with no line breaking.


In ] syntax, four tildes are a shortcut for a user's signature. Three and five tildes puts the signature without timestamp and only the timestamp, respectively.<ref>{{Cite web |title=Help:Signatures |url=https://www.mediawiki.org/search/?title=Help:Signatures&oldid=6657175 |date=20 July 2024 |access-date=2024-11-28 |website=MediaWiki |language=en |archive-url=https://web.archive.org/web/20241128225211/https://www.mediawiki.org/search/?title=Help:Signatures&oldid=6657175 |archive-date=2024-11-28}}</ref>
In ] ], four tildes are used as a shortcut for a user's signature.


In ], the tilde is used as the prefix for format specifiers in format strings.<ref>{{cite web|url=http://www.lispworks.com/documentation/HyperSpec/Body/22_c.htm |title=CLHS: Section 22.3 |publisher=Lispworks.com |date=2005-04-11 |access-date=2010-07-30}}</ref> In ], the tilde is used as the prefix for format specifiers in format strings.<ref>{{cite web|url=http://www.lispworks.com/documentation/HyperSpec/Body/22_c.htm |title=CLHS: Section 22.3 |publisher=Lispworks.com |date=2005-04-11 |access-date=2010-07-30}}</ref>


In ], MSP objects have names ending with a tilde. MSP objects process at the computer's sampling rate and mainly deal with sound.<ref>{{Cite web |author=Cycling '74 |title=MSP Basics Tutorial 1: Test Tone |url=https://docs.cycling74.com/learn/articles/05_mspbasicchapter01/ |archive-url=https://web.archive.org/web/20241206215808/https://docs.cycling74.com/learn/articles/05_mspbasicchapter01/ |archive-date=2024-12-06 |access-date=2024-12-06 |website=Cycling '74 Documentation |language=en}}</ref>
In ], a tilde is used to denote objects that process at the computer's sampling rate, i.e. mainly those that deal with sound.


In ], the tilde is used as the prefix for negative numbers and as the unary negation operator. In ], the tilde is used as the prefix for negative numbers and as the unary negation operator.<ref>{{Cite web |last=Fisher |first=Kathleen |title=Learning Standard ML |url=https://www.cs.tufts.edu/comp/105-2017f/readings/ml.html |access-date=2024-12-06 |website=www.cs.tufts.edu |at=}}</ref>


In ], the tilde is used to specify the label for a labeled parameter. In ], the tilde is used to specify the label for a labeled parameter.<ref>{{Cite web |title=Labelled and Optional Arguments |url=https://ocaml.org/docs/labels |archive-url=https://web.archive.org/web/20241206214050/https://ocaml.org/docs/labels |archive-date=2024-12-06 |access-date=2024-12-06 |website=OCaml |language=en}}</ref>


In ], the tilde operator is used to separate the left- and right-hand sides in a model formula.<ref></ref> In ], the tilde operator is used to separate the left- and right-hand sides in a model formula.<ref></ref>


In ], the twiddle is used as a "message send" symbol. For example, <code>Employee.name~lower()</code> would cause the <code>lower()</code> method to act on the object <code>Employee</code>'s <code>name</code> attribute, returning the result of the operation. <code>~~</code> returns the object that received the method rather than the result produced. Thus it can be used when the result need not be returned or when cascading methods are to be used. <code>team~~insert("Jane")~~insert("Joe")~~insert("Steve")</code> would send multiple concurrent <code>insert</code> messages, thus invoking the <code>insert</code> method three consecutive times on the <code>team</code> object. In ], the twiddle is used as a "message send" symbol. For example, <code>Employee.name~lower()</code> would cause the <code>lower()</code> method to act on the object <code>Employee</code>'s <code>name</code> attribute, returning the result of the operation. <code>~~</code> returns the object that received the method rather than the result produced. Thus, it can be used when the result need not be returned or when cascading methods are to be used. <code>team~~insert("Jane")~~insert("Joe")~~insert("Steve")</code> would send multiple concurrent <code>insert</code> messages, thus invoking the <code>insert</code> method three consecutive times on the <code>team</code> object.<ref>{{Cite web |last1=Ashley |first1=W. David |last2=Flatscher |first2=Rony G. |last3=Hessling |first3=Mark |last4=McGuire |first4=Rick |last5=Miesfeld |first5=Mark |last6=Peedin |first6=Lee |last7=Tammer |first7=Rainer |last8=Wolfers |first8=Jon |date=August 14, 2009 |title=Terms, Expressions, and Operators |url=https://www.oorexx.org/docs/rexxref/x974.htm |url-status=dead |archive-url=https://web.archive.org/web/20210116122945/https://www.oorexx.org/docs/rexxref/x974.htm |archive-date=2021-01-16 |access-date=2024-12-06 |website=Open Object Rexx™: Reference |series=Version 4.0.0 Edition}}</ref>


In ], a prefixing tilde ] a value to a string. An infix tilde ]s strings,<ref name="rakudocs-operators">{{Cite web |date=2024-09-13 |title=Operators |url=https://docs.raku.org/language/operators |archive-url=https://web.archive.org/web/20241130145259/https://docs.raku.org/language/operators |archive-date=2024-11-30 |access-date=2024-12-06 |website=Raku documentation}}</ref> taking place of the dot operator in Perl, as the dot is used for member access instead of {{code|->}}.<ref name="rakudocs-perl">{{Cite web |date=2024-08-01 |title=Perl to Raku guide - in a nutshell |url=https://docs.raku.org/language/operators |archive-url=https://web.archive.org/web/20241203160657/https://docs.raku.org/language/5to6-nutshell |archive-date=2024-12-03 |access-date=2024-12-06 |website=Raku documentation}}</ref> {{code|~~}} is called "the smartmatch operator" and its semantics depend on the type of the right-side argument. Namely, it checks numeric and string equalities, performs ] match tests (as opposed to {{code|{{=}}~}} in Perl<ref name="rakudocs-perl" />), and ].<ref name="rakudocs-operators" />
In ], {{code|~~}} is used instead of {{code|1= =~}} for a ]. Because the dot operator is used for member access instead of {{code|->}}, ] is done with a single tilde.


<syntaxhighlight lang="raku"> <syntaxhighlight lang="raku">
Line 365: Line 371:
# the $/ variable holds the last regex match result # the $/ variable holds the last regex match result
</syntaxhighlight> </syntaxhighlight>

In ], the "Core schema," a set of aliases that processors are recommended to use, resolves a tilde as null.<ref>{{Cite web |date=2021-10-01 |title=YAML Ain't Markup Language (YAML™) revision 1.2.2 |url=https://yaml.org/spec/1.2.2/ |archive-url=https://web.archive.org/web/20241124004709/https://yaml.org/spec/1.2.2/ |archive-date=2024-11-24 |access-date=2024-11-28 |at=10.3.2. Tag Resolution}}</ref>


====Keyboards==== ====Keyboards====
{{See also|QWERTY#Multilingual variants}} {{See also|QWERTY#Multilingual variants}}
The presence (or absence) of a tilde engraved on the keyboard depends on the territory where it was sold. In either case, computer's system settings determine the ] and the default setting will match the engravings on the keys. Even so, it certainly possible to configure a keyboard for a different locale than that supplied by the retailer. On American and British keyboards, the tilde is a standard keytop and pressing it produces a free-standing "ASCII Tilde". To generate a letter with a tilde diacritic requires the ] or ] keyboard setting. The presence (or absence) of a tilde engraved on the keyboard depends on the territory where it was sold. In either case, computer's system settings determine the ] and the default setting will match the engravings on the keys. Even so, it certainly possible to configure a keyboard for a different locale than that supplied by the retailer. On American and British keyboards, the tilde is a standard keytop and pressing it produces a free-standing "ASCII Tilde". To generate a letter with a tilde diacritic requires the ] or ] keyboard setting.
* With US-international, the `/~ key is a ]: pressing the {{key press|~}} key and then a letter produces the tilde-accented form of that letter. (For example, {{key press|~}}{{nbsp}}{{key press|a}} produces {{char|ã}}.) With this setting active, an ASCII tilde can be inserted with the dead key followed by the space bar, or alternatively by striking the dead key twice in a row. * With US-international, the {{key press|~}} key is a ]: pressing that key and then a letter produces the tilde-accented form of that letter. (For example, {{key press|~}}{{nbsp}}{{key press|a}} produces {{char|ã}}.) With this setting active, an ASCII tilde can be inserted with the dead key followed by the space bar, or alternatively by striking the dead key twice in a row.
* With UK-extended, the key works normally but becomes a 'dead key' when combined with ]. Thus {{key press|AltGr|#}} followed by a letter produces the accented form of that letter. * With UK-extended, the key works normally but becomes a 'dead key' when combined with ]. Thus {{key press|AltGr|#}} followed by a letter produces the accented form of that letter.
* With a ] either of the Alt/] keys function similarly. * With a ] either of the Alt/] keys function similarly.
* With ], the ] facility is used. * With ], the ] facility is used.
Instructions for other national languages and keyboards are beyond the scope of this article. Instructions for other national languages and keyboards are beyond the scope of this article.

In the US and European ] systems, the ] for a single tilde is <code>126</code>.


==== Backup filenames ==== ==== Backup filenames ====
The dominant ] convention for naming backup copies of files is appending a tilde to the original file name. It originated with the ] text editor<ref></ref> and was adopted by many other editors and some command-line tools. The dominant ] convention for naming backup copies of files is appending a tilde to the original file name. It originated with the ] text editor<ref>{{cite web |title=GNU Emacs Lisp Reference Manual |url=https://www.gnu.org/software/emacs/manual/html_node/elisp/Backup-Names.html |publisher=Free Software Foundation, Inc. |access-date=2024-12-06 |at=27.1.4 Naming Backup Files - }}</ref> and was adopted by many other editors and some command-line tools.


Emacs also introduced an elaborate numbered backup scheme, with files named {{mono|filename.~1~}}, {{mono|filename.~2~}} and so on. It didn't catch on, as the rise of ] software eliminates the need for this usage. Emacs also introduced an elaborate numbered backup scheme, with files named {{mono|filename.~1~}}, {{mono|filename.~2~}} and so on.<ref>{{cite web |title=GNU Emacs Lisp Reference Manual |url=https://www.gnu.org/software/emacs/manual/html_node/elisp/Numbered-Backups.html |publisher=Free Software Foundation, Inc. |access-date=2024-12-06 |at=27.1.3 Making and Deleting Numbered Backup Files}}</ref> It didn't catch on, as the rise of ] software eliminates the need for this usage.{{Citation needed|date=December 2024}}


==== Microsoft filenames ==== ==== Microsoft filenames ====

Latest revision as of 08:43, 30 December 2024

Punctuation and accent mark This article is about the punctuation and diacritical mark. For the Swedish singer, see Tilde (singer). "~" redirects here. For the album, see ~ (album).

~ ◌̃
Tilde (symbol), Combining tilde (diacritic)
In UnicodeU+007E ~ TILDE
U+0303 ◌̃ COMBINING TILDE
Related
See alsoDouble tilde (disambiguation)
U+301C 〜 WAVE DASH
This page uses notation for orthographic or other linguistic analysis. For the meaning of how ⟨ ⟩, | |, / /, and are used here, see this page.

The tilde (/ˈtɪldə/, also /ˈtɪld, -di, -deɪ/) is a grapheme˜⟩ or ⟨~⟩ with a number of uses. The name of the character came into English from Spanish tilde, which in turn came from the Latin titulus, meaning 'title' or 'superscription'. Its primary use is as a diacritic (accent) in combination with a base letter. Its freestanding form is used in modern texts mainly to indicate approximation.

History

Use by medieval scribes

The tilde was originally one of a variety of marks written over an omitted letter or several letters as a scribal abbreviation (a "mark of contraction"). Thus, the commonly used words Anno Domini were frequently abbreviated to A Dñi, with an elevated terminal with a contraction mark placed over the "n". Such a mark could denote the omission of one letter or several letters. This saved on the expense of the scribe's labor and the cost of vellum and ink. Medieval European charters written in Latin are largely made up of such abbreviated words with contraction marks and other abbreviations; only uncommon words were given in full.

The text of the Domesday Book of 1086, relating for example, to the manor of Molland in Devon (see adjacent picture), is highly abbreviated as indicated by numerous tildes.

Text of Exeter Domesday Book of 1086

The text with abbreviations expanded is as follows:

Mollande tempore regis Eduardi geldabat pro quattuor hidis et uno ferling. Terra est quadraginta carucae. In dominio sunt tres carucae et decem servi et triginta villani et viginti bordarii cum sedecim carucis. Ibi duodecim acrae prati et quindecim acrae silvae. Pastura tres leugae in longitudine et latitudine. Reddit quattuor et viginti libras ad pensam. Huic manerio est adjuncta Blachepole. Elwardus tenebat tempore regis Edwardi pro manerio et geldabat pro dimidia hida. Terra est duae carucae. Ibi sunt quinque villani cum uno servo. Valet viginti solidos ad pensam et arsuram. Eidem manerio est injuste adjuncta Nimete et valet quindecim solidos. Ipsi manerio pertinet tercius denarius de Hundredis Nortmoltone et Badentone et Brantone et tercium animal pasturae morarum.

Role of mechanical typewriters

Further information: Dead key and Diacritic
An Olivetti Lettera 32 typewriter (Portuguese Model) with tilde (and circumflex) dead-key beside Ç
Spanish typewriter (QWERTY keyboard) with dead keys for acute, circumflex, diaeresis and grave accents. Ñ/ñ is present as a precomposed character only.

On typewriters designed for languages that routinely use diacritics (accent marks), there are two possible solutions. Keys can be dedicated to precomposed characters or alternatively a dead key mechanism can be provided. With the latter, a mark is made when a dead key is typed, but unlike normal keys, the paper carriage does not move on and thus the next letter to be typed is printed under that accent. Typewriters for Spanish typically have a dedicated key for Ñ/ñ but, as Portuguese uses Ã/ã and Õ/õ, a single dead-key (rather than take two keys to dedicate) is the most practical solution.

The tilde symbol did not exist independently as a movable type or hot-lead printing character since the type cases for Spanish or Portuguese would include sorts for the accented forms.

The centralized ASCII tilde

Serif: —~—
Sans-serif: —~—
Monospace: —~—
A free-standing tilde between two em dashes
in three font families

The first ASCII standard (X3.64-1963) did not have a tilde. Like Portuguese and Spanish, the French, German and Scandinavian languages also needed symbols in excess of the basic 26 needed for English. The ASA worked with and through the CCITT to internationalize the code-set, to meet the basic needs of at least the Western European languages.

It appears to have been at their May 13–15, 1963 meeting that the CCITT decided that the proposed ISO 7-bit code standard would be suitable for their needs if a lower case alphabet and five diacritical marks were added to it. At the October 29–31 meeting, then, the ISO subcommittee altered the ISO draft to meet the CCITT requirements, replacing the up-arrow and left-arrow with diacriticals, adding diacritical meanings to the apostrophe and quotation mark, and making the number sign a dual for the tilde.

— Yucca's free information site (which cites the original sources).

Thus ISO 646 was born (and the ASCII standard updated to X3.64-1967), providing the tilde and other symbols as optional characters.

ISO 646 and ASCII incorporated many of the overprinting lower-case diacritics from typewriters, including tilde. Overprinting was intended to work by putting a backspace code between the codes for letter and diacritic. However even at that time, mechanisms that could do this or any other overprinting were not widely available, did not work for capital letters, and were impossible on video displays, with the result that this concept failed to gain significant acceptance. Consequently, many of these free-standing diacritics (and the underscore) were quickly reused by software as additional syntax, basically becoming new types of syntactic symbols that a programming language could use. As this usage became predominant, type design gradually evolved so these diacritic characters became larger and more vertically centered, making them useless as overprinted diacritics but much easier to read as free-standing characters that had come to be used for entirely different and novel purposes. Most modern fonts align the plain ASCII "spacing" (free-standing) tilde at the same level as dashes, or only slightly higher.

The free-standing tilde is at code 126 in ASCII, where it was inherited into Unicode as U+007E.

A similar shaped mark (⁓) is known in typography and lexicography as a swung dash: these are used in dictionaries to indicate the omission of the entry word.

Connection to Spanish

Main article: Ñ
Logo of the Instituto Cervantes
Logo of CNN en Español

As indicated by the etymological origin of the word "tilde" in English, this symbol has been closely associated with the Spanish language. The connection stems from the use of the tilde above the letter ⟨n⟩ to form the (different) letter ⟨ñ⟩ in Spanish, a feature shared by only a few other languages, most of which are historically connected to Spanish. This peculiarity can help non-native speakers quickly identify a text as being written in Spanish with little chance of error. Particularly during the 1990s, Spanish-speaking intellectuals and news outlets demonstrated support for the language and the culture by defending this letter against globalisation and computerisation trends that threatened to remove it from keyboards and other standardised products and codes. The Instituto Cervantes, founded by Spain's government to promote the Spanish language internationally, chose as its logo a highly stylised Ñ with a large tilde. The 24-hour news channel CNN in the US later adopted a similar strategy on its existing logo for the launch of its Spanish-language version, therefore being written as CN͠N. And similarly to the National Basketball Association (NBA), the Spain men's national basketball team is nicknamed "ÑBA".

In Spanish itself the word tilde is used more generally for diacritics, including the stress-marking acute accent. The diacritic ~ is more commonly called virgulilla or la tilde de la eñe, and is not considered an accent mark in Spanish, but rather simply a part of the letter ñ (much like the dot over ı makes an i character that is familiar to readers of English).

Usage

Letters with tilde

Unicode encodes a number of cases of "letter with tilde" as precomposed characters and these are displayed below. In addition, many more symbols may be composed using the combining character facility (U+0303 ◌̃ COMBINING TILDE, U+0330 ◌̰ COMBINING TILDE BELOW and others) that may be used with any letter or other diacritic to create a customised symbol but this does not mean that the result has any real-world application and are not shown in the table.

A tilde diacritic can be added to almost any character by using a combining tilde. Greek and Cyrillic letters with tilde (Α͂ ᾶ, Η͂ ῆ, Ι͂ ῖ, ῗ, Υ͂ ῦ, ῧ and А̃ а̃, Ә̃ ә̃, Е̃ е̃, И̃ и̃, О̃ о̃, У̃ у̃, Ј̃ j̃) are formed using this method.

Common use in English

The English language does not use the tilde as a diacritic, though it is used in some loanwords. The standalone form of the symbol is used more widely. Informally, it means "approximately", "about", or "around", such as "~30 minutes before", meaning "approximately 30 minutes before". It may also mean "similar to", including "of the same order of magnitude as", such as "x ~ y" meaning that x and y are of the same order of magnitude. Another approximation symbol is the double tilde ≈, meaning "approximately/almost equal to". The tilde is also used to indicate congruence of shapes by placing it over an = symbol, thus ≅.

In more recent digital usage, tildes on either side of a word or phrase have sometimes come to convey a particular tone that "let the enclosed words perform both sincerity and irony", which can pre-emptively defuse a negative reaction. For example, BuzzFeed journalist Joseph Bernstein interprets the tildes in the following tweet:

"in the ~ spirit of the season ~ will now link to some of the (imho) #Bestof2014 sports reads. if you hate nice things, mute that hashtag."

as a way of making it clear that both the author and reader are aware that the enclosed phrase – "spirit of the season" – "is cliche and we know this quality is beneath our author, and we don't want you to think our author is a cliche person generally".

Among other uses, the symbol has been used on social media to indicate sarcasm. It may also be used online, especially in informal writing such as fanfiction, to convey a cutesy, playful, or flirtatious tone.

Diacritical use

In some languages, the tilde is a diacritic mark placed over a letter to indicate a change in its pronunciation:

Pitch

The tilde was firstly used in the polytonic orthography of Ancient Greek, as a variant of the circumflex, representing a rise in pitch followed by a return to standard pitch.

Abbreviation

Carta marina showing Finnish economy, with the captions Hic fabricantur naves and Hic fabricantur bombarde abbreviated

Later, it was used to make abbreviations in medieval Latin documents. When an ⟨n⟩ or ⟨m⟩ followed a vowel, it was often omitted, and a tilde (physically, a small ⟨N⟩) was placed over the preceding vowel to indicate the missing letter; this is the origin of the use of tilde to indicate nasalization (compare the development of the umlaut as an abbreviation of ⟨e⟩.) A tilde represented an omitted ⟨a⟩ or a syllable containing it. The practice of using the tilde over a vowel to indicate omission of an ⟨n⟩ or ⟨m⟩ continued in printed books in French as a means of reducing text length until the 17th century. It was also used in Portuguese and Spanish.

The tilde was also used occasionally to make other abbreviations, such as over the letter ⟨q⟩, making q̃, to signify the word que ("that"). It also appears for qua and together with the letter ⟨p⟩ to form p̃ for pra.

Nasalization

It is also as a small ⟨n⟩ that the tilde originated when written above other letters, marking a Latin ⟨n⟩ which had been elided in old Galician-Portuguese. In modern Portuguese it indicates nasalization of the base vowel: mão "hand", from Lat. manu-; razões "reasons", from Lat. rationes. This usage has been adopted in the orthographies of several native languages of South America, such as Guarani and Nheengatu, as well as in the International Phonetic Alphabet (IPA) and many other phonetic alphabets. For example, is the IPA transcription of the pronunciation of the French place-name Lyon.

In Breton, the symbol ⟨ñ⟩ after a vowel means that the letter ⟨n⟩ serves only to give the vowel a nasalised pronunciation, without being itself pronounced, as it normally is. For example, ⟨an⟩ gives the pronunciation whereas ⟨añ⟩ gives .

In the DMG romanization of Tunisian Arabic, the tilde is used for nasal vowels õ and ṏ.

Palatal n

Main article: Ñ

The tilded ⟨n⟩ (⟨ñ⟩, ⟨Ñ⟩) developed from the digraph ⟨nn⟩ in Spanish. In this language, ⟨ñ⟩ is considered a separate letter called eñe (IPA: [ˈeɲe]), rather than a letter-diacritic combination; it is placed in Spanish dictionaries between the letters ⟨n⟩ and ⟨o⟩. In Spanish, the word tilde actually refers to diacritics in general, e.g. the acute accent in José, while the diacritic in ⟨ñ⟩ is called "virgulilla" (IPA: [birɣuˈliʝa]) (yeísta) or (IPA: [birɣuˈliʎa]) (non-yeísta). Current languages in which the tilded ⟨n⟩ (⟨ñ⟩) is used for the palatal nasal consonant /ɲ/ include

Tone

In Vietnamese, a tilde over a vowel represents a creaky rising tone (ngã). Letters with the tilde are not considered separate letters of the Vietnamese alphabet.

International Phonetic Alphabet

This section does not cite any sources. Please help improve this section by adding citations to reliable sources. Unsourced material may be challenged and removed. (June 2024) (Learn how and when to remove this message)

In phonetics, a tilde is used as a diacritic that is placed above a letter, below it or superimposed onto the middle of it:

  • A tilde above a letter indicates nasalization, e.g. , .
  • A tilde superimposed onto the middle of a letter indicates velarization or pharyngealization, e.g. , . If no precomposed Unicode character exists, the Unicode character U+0334 ◌̴ COMBINING TILDE OVERLAY can be used to generate one.
  • A tilde below a letter indicates laryngealisation, e.g. . If no precomposed Unicode character exists, the Unicode character U+0330 ◌̰ COMBINING TILDE BELOW can be used to generate one.

A tilde between two phonemes indicates optionality, or "alternates with". E.g. ⟨ɕ ~ ʃ⟩ could indicate that the sounds may alternate depending on context (free variation), or that they vary based on region or speaker, or some other variation.

Letter extension

In Estonian, the symbol ⟨õ⟩ stands for the close-mid back unrounded vowel, and it is considered an independent letter.

Other uses

Some languages and alphabets use the tilde for other purposes, such as:

  • Arabic script: A symbol resembling the tilde (U+0653 ـٓ ARABIC MADDAH ABOVE) is used over the letter ⟨ا⟩ (/a/) to become آ, denoting a long /ʔaː/ sound.
  • Guaraní: The tilded ⟨⟩ (note that ⟨G/g⟩ with tilde is not available as a precomposed glyph in Unicode) stands for the velar nasal consonant. Also, the tilded ⟨y⟩ (⟨Ỹ⟩) stands for the nasalized upper central rounded vowel . Munduruku, Parintintín, and two older spellings of Filipino words also use ⟨g̃⟩.
  • Syriac script: A tilde (~) under the letter Kaph represents a sound, transliterated as ch or č.
  • Estonian and Võro use the tilde above the letter o (õ) to indicate the vowel , a rare sound among languages.
  • Unicode has a combining vertical tilde character: U+033E ◌̾ COMBINING VERTICAL TILDE. It is used to indicate middle tone in linguistic transcription of certain dialects of the Lithuanian language, and was also used historically in the letter х̾, which was part of the Polish Cyrillic alphabet of the late 19th century.
  • Resurrección María de Azkue's 1906 Basque dictionary used an idiosyncratic spelling including ⟨ã ĩ ñ õ ũ ⟩.

Punctuation

The tilde is used in various ways in punctuation, including:

Range

In some languages (such as in French), a tilde or a tilde-like wave dash (Unicode: U+301C 〜 WAVE DASH) may be used as a punctuation mark (instead of an unspaced hyphen, en dash or em dash) between two numbers, to indicate a range. Doing so avoids the risk of confusion with subtraction or a hyphenated number (such as a part number or model number). For example, "12~15" means "12 to 15", "~3" means "up to three", and "100~" means "100 and greater". East Asian languages almost always use this convention, but it is sometimes done for clarity in some other languages as well. Chinese uses the wave dash and full-width em dash interchangeably for this purpose. In English, the tilde is often used to express ranges and model numbers in electronics, but rarely in formal grammar or in type-set documents, as a wavy dash preceding a number sometimes represents an approximation (see below).

The range tilde is used for various purposes in French, but only to denote ranges of numbers (e.g., « 21~32 degrés Celsius »" means "21 to 32 degrees Celsius")

(The symbol U+2248 ≈ ALMOST EQUAL TO (a double tilde) is also used in French, for example, « ≈400 mètres » means "approximately 400 meters".)

Approximation

See also: Approximation

Before a number the tilde can mean 'approximately'; '~42' means 'approximately 42'. When used with currency symbols that precede the number (national conventions differ), the tilde precedes the symbol, thus for example '~$10' means 'about ten dollars'.

The symbols (almost equal to) and (approximately equal to) are among the other symbols used to express approximation.

Japanese

Further information: Japanese punctuation § Wave dash

The wave dash (波ダッシュ, nami dasshu) is used for various purposes in Japanese, including to denote ranges of numbers (e.g., 5〜10 means between 5 and 10) in place of dashes or brackets, and to indicate origin. The wave dash is also used to separate a title and a subtitle in the same line, as a colon is used in English.

When used in conversations via email or instant messenger it may be used as a sarcasm mark .

The sign is used as a replacement for the chōon, katakana character, in Japanese, extending the final syllable.

Unicode and Shift JIS encoding of wave dash
Correct JIS wave dashCorrect JIS wave dash, current in UnicodePrevious Unicode wave dash (incorrect)Previous Unicode wave dash (incorrect)

In practice the full-width tilde (全角チルダ, zenkaku chiruda) (Unicode U+FF5E ~ FULLWIDTH TILDE), is often used instead of the wave dash (波ダッシュ, nami dasshu) (Unicode U+301C 〜 WAVE DASH), because the Shift JIS code for the wave dash, 0x8160, which should be mapped to U+301C, is instead mapped to U+FF5E in Windows code page 932 (Microsoft's code page for Japanese), a widely used extension of Shift JIS.

This decision avoided a shape definition error in the original (6.2) Unicode code charts: the wave dash reference glyph in JIS / Shift JIS matches the Unicode reference glyph for U+FF5E FULLWIDTH TILDE, while the original reference glyph for U+301C was reflected, incorrectly, when Unicode imported the JIS wave dash. In other platforms such as the classic Mac OS and macOS, 0x8160 is correctly mapped to U+301C. It is generally difficult, if not impossible, for users of Japanese Windows to type U+301C, especially in legacy, non-Unicode applications.

A similar situation exists regarding the Korean KS X 1001 character set, in which Microsoft maps the EUC-KR or UHC code for the wave dash (0xA1AD) to U+223C ∼ TILDE OPERATOR, while IBM and Apple map it to U+301C. Microsoft also uses U+FF5E to map the KS X 1001 raised tilde (0xA2A6), while Apple uses U+02DC ˜ SMALL TILDE.

The current Unicode reference glyph for U+301C has been corrected to match the JIS standard in response to a 2014 proposal, which noted that while the existing Unicode reference glyph had been matched by fonts from the discontinued Windows XP, all other major platforms including later versions of Microsoft Windows shipped with fonts matching the JIS reference glyph for U+301C.

The JIS / Shift JIS wave dash is still formally mapped to U+301C as of JIS X 0213, whereas the WHATWG Encoding Standard used by HTML5 follows Microsoft in mapping 0x8160 to U+FF5E. These two code points have a similar or identical glyph in several fonts, reducing the confusion and incompatibility.

Chinese

WeChat users frequently replace final punctuations with tildes in messages. An analysis of such "innovative uses" of tildes found that final tildes are most used to make the message friendlier and polite. They make expressives more sincere and directives less abrupt. Less commonly, final tildes imply sounds, i.e. otomatopeas and sound extensions. This use is compared to sajiao (Chinese: 撒娇), a child-like acting seen in East Asian cultures that are also vocalized by raising or extending tone.

Mathematics

As a unary operator

A tilde in front of a single quantity can mean "approximately", "about" or "of the same order of magnitude as."

In written mathematical logic, the tilde represents negation: "~p" means "not p", where "p" is a proposition. Modern use often replaces the tilde with the negation symbol (¬) for this purpose, to avoid confusion with equivalence relations.

As a relational operator

In mathematics, the tilde operator (which can be represented by a tilde or the dedicated character U+223C ∼ TILDE OPERATOR), sometimes called "twiddle", is often used to denote an equivalence relation between two objects. Thus "x ~ y" means "x is equivalent to y". It is a weaker statement than stating that x equals y. The expression "x ~ y" is sometimes read aloud as "x twiddles y", perhaps as an analogue to the verbal expression of "x = y".

The tilde can indicate approximate equality in a variety of ways. It can be used to denote the asymptotic equality of two functions. For example, f (x) ~ g(x) means that lim x f ( x ) g ( x ) = 1 {\displaystyle \lim _{x\to \infty }{\frac {f(x)}{g(x)}}=1} .

A tilde is also used to indicate "approximately equal to" (e.g. 1.902 ~= 2). This usage probably developed as a typed alternative to the libra symbol used for the same purpose in written mathematics, which is an equal sign with the upper bar replaced by a bar with an upward hump, bump, or loop in the middle (︍︍♎︎) or, sometimes, a tilde (≃). The symbol "≈" is also used for this purpose.

In physics and astronomy, a tilde can be used between two expressions (e.g. h ~ 10 J s) to state that the two are of the same order of magnitude.

In statistics and probability theory, the tilde means "is distributed as"; see random variable(e.g. X ~ B(n,p) for a binomial distribution).

A tilde can also be used to represent geometric similarity (e.g. ∆ABC ~ ∆DEF, meaning triangle ABC is similar to DEF). A triple tilde () is often used to show congruence, an equivalence relation in geometry.

In graph theory, the tilde can be used to represent adjacency between vertices. The edge ( x , y ) {\displaystyle (x,y)} connects vertices x {\displaystyle x} and y {\displaystyle y} which can be said to be adjacent, and this adjacency can be denoted x y {\displaystyle x\sim y} .

As a diacritic

The symbol " f ~ {\displaystyle {\tilde {f}}} " is pronounced as "eff tilde" or, informally, as "eff twiddle". This can be used to denote the Fourier transform of f, or a lift of f, and can have a variety of other meanings depending on the context.

A tilde placed below a letter in mathematics can represent a vector quantity (e.g. ( x 1 , x 2 , x 3 , , x n ) = x {\displaystyle (x_{1},x_{2},x_{3},\ldots ,x_{n})={\underset {^{\sim }}{\mathbf {x} }}} ).

In statistics and probability theory, a tilde placed on top of a variable is sometimes used to represent the median of that variable; thus y ~ {\displaystyle {\tilde {\mathbf {y} }}} would indicate the median of the variable y {\displaystyle \mathbf {y} } . A tilde over the letter n ( n ~ {\displaystyle {\tilde {n}}} ) is sometimes used to indicate the harmonic mean.

In machine learning, a tilde may represent a candidate value for a cell state in GRUs or LSTM units. (e.g. c̃)

Physics

Often in physics, one can consider an equilibrium solution to an equation, and then a perturbation to that equilibrium. For the variables in the original equation (for instance X {\displaystyle X} ) a substitution X x + x ~ {\displaystyle X\to x+{\tilde {x}}} can be made, where x {\displaystyle x} is the equilibrium part and x ~ {\displaystyle {\tilde {x}}} is the perturbed part.

A tilde is also used in particle physics to denote the hypothetical supersymmetric partner. For example, an electron is referred to by the letter e, and its superpartner the selectron is written .

In multibody mechanics, the tilde operator maps three-dimensional vectors ω R 3 {\displaystyle {\boldsymbol {\omega }}\in \mathbb {R} ^{3}} to skew-symmetrical matrices ω ~ = [ 0 ω 3 ω 2 ω 3 0 ω 1 ω 2 ω 1 0 ] {\displaystyle {\tilde {\boldsymbol {\omega }}}={\begin{bmatrix}0&-\omega _{3}&\omega _{2}\\\omega _{3}&0&-\omega _{1}\\-\omega _{2}&\omega _{1}&0\end{bmatrix}}} (see or ).

Economics

For relations involving preference, economists sometimes use the tilde to represent indifference between two or more bundles of goods. For example, to say that a consumer is indifferent between bundles x and y, an economist would write x ~ y.

Electronics

It can approximate the sine wave symbol (∿, U+223F), which is used in electronics to indicate alternating current, in place of +, −, or ⎓ for direct current.

Linguistics

The tilde may indicate alternating allomorphs or morphological alternation, as in //ˈniː~ɛl+t// for kneel~knelt (the plus sign '+' indicates a morpheme boundary).

The tilde may represent some sort of phonetic or phonemic variation between two sounds, which might be allophones or in free variation. For example, can represent "either or ".

In formal semantics, it is also used as a notation for the squiggle operator which plays a key role in many theories of focus.

Computing

Computer programmers use the tilde in various ways and sometimes call the symbol (as opposed to the diacritic) a squiggle, squiggly, swiggle, or twiddle. According to the Jargon File, other synonyms sometimes used in programming include not, approx, wiggle, enyay (after eñe) and (humorously) sqiggle /ˈskɪɡəl/.

Directories and URLs

On Unix-like operating systems (including AIX, BSD, Linux and macOS), tilde normally indicates the current user's home directory. For example, if the current user's home directory is /home/user, then the command cd ~ is equivalent to cd /home/user, cd $HOME, or cd. This convention derives from the Lear-Siegler ADM-3A terminal in common use during the 1970s, which happened to have the tilde symbol and the word "Home" (for moving the cursor to the upper left) on the same key. When prepended to a particular username, the tilde indicates that user's home directory (e.g., ~janedoe for the home directory of user janedoe, such as /home/janedoe).

Used in URLs on the World Wide Web, it often denotes a personal website on a Unix-based server. For example, http://www.example.com/~johndoe/ might be the personal website of John Doe. This mimics the Unix shell usage of the tilde. However, when accessed from the web, file access is usually directed to a subdirectory in the user's home directory, such as /home/username/public_html or /home/username/www.

In URLs, the characters %7E (or %7e) may substitute for a tilde if an input device lacks a tilde key. Thus, http://www.example.com/~johndoe/ and http://www.example.com/%7Ejohndoe/ will behave in the same manner.

Computer languages

This section needs additional citations for verification. Please help improve this article by adding citations to reliable sources in this section. Unsourced material may be challenged and removed.
Find sources: "Tilde" – news · newspapers · books · scholar · JSTOR (October 2024) (Learn how and when to remove this message)
Regex

The tilde is used in the AWK programming language as part of the pattern match operators for regular expressions:

  • variable ~ /regex/ returns true if the variable is matched.
  • variable !~ /regex/ returns false if the variable is matched.

The operators are also used in the SQL variant of the database PostgreSQL.

A variant of this, with the plain tilde replaced with =~, was adopted in Perl. Ruby also uses this variant without the negated operator.

In APL and MATLAB, tilde represents the monadic logical function NOT. and in APL it additionally represents the dyadic multiset function without (set difference).

In C the tilde character is used as bitwise NOT unary operator, following the notation in logic (an ! causes a logical NOT, instead). This is also used by many languages based on or influenced by C, such as C++, C#, D, Java, Perl, PHP, and Python. The MySQL database also use tilde as bitwise invert as does Microsoft's SQL Server Transact-SQL (T-SQL) language.

JavaScript also uses tilde as bitwise NOT. Because bitwise operators work on integers, and numbers in JavaScript are 64 bit floating point numbers, the operator converts numbers to a 32-bit signed integer before it performing the negation. The conversion truncates the fractional part and most significant bits. This lets two tildes ~~x to be used as a short syntax to cast to integer. However, it is not recommended as use for truncation. In contrast, it does not truncate BigInts, which are arbitrarily large integers.

In C++ and C#, the tilde is also used as the first character in a class's method name (where the rest of the name must be the same name as the class) to indicate a destructor – a special method which is called at the end of the object's life.

In ASP.NET applications, tilde ('~') is used as a shortcut to the root of the application's virtual directory.

In the CSS stylesheet language, the tilde finds the element selected by the right-hand side that shares the parent with an element selected by the left-hand side.

In the D programming language, the tilde is used as bitwise not operator, concatenation operator such as those of arrays, and to indicate an object destructor. Tilde operator can be overloaded for user types, and binary tilde operator is mostly used to merging two objects, or adding some objects to set of objects. It was introduced because plus operator can have different meaning in many situations. For example, "120" + "14" may produce "134" (addition of two numbers), "12014" (concatenation of strings), or something else. D disallows + operator for arrays (and strings), and provides separate operator for concatenation (similarly PHP programming language solved this problem by using dot operator for concatenation, and + for number addition, which will also work on strings containing numbers).

In Eiffel, the tilde is used for object comparison. If a and b denote objects, the Boolean expression a ~ b has value true if and only if these objects are equal, as defined by the applicable version of the library routine is_equal, which by default denotes field-by-field object equality but can be redefined in any class to support a specific notion of equality. If a and b are references, the object equality expression a ~ b is to be contrasted with a = b which denotes reference equality. Unlike the call a.is_equal (b), the expression a ~ b is type-safe even in the presence of covariance.

In the Apache Groovy programming language the tilde character is used as an operator mapped to the bitwiseNegate() method. Given a String the method will produce a java.util.regex.Pattern. Given an integer it will negate the integer bitwise like in C. =~ and ==~ can in Groovy be used to match a regular expression.

In Haskell, the tilde is used in type constraints to indicate type equality. Also, in pattern-matching, the tilde is used to indicate a lazy pattern match.

In the Inform 6 programming language, the tilde is used to indicate a quotation mark inside a quoted string. Tilde itself is created by @@126.

In "text mode" of the LaTeX typesetting language a tilde diacritic can be obtained using, e.g., \~{n}, yielding "ñ". A stand-alone tilde can be obtained by using \textasciitilde or \string~. In "math mode" a tilde diacritic can be written as, e.g., \tilde{x}. For a wider tilde \widetilde can be used. The \sim command produce a tilde-like binary relation symbol that is often used in mathematical expressions, and the double-tilde is obtained with \approx. The url package also supports entering tildes directly, e.g., \url{http://server/~name}. In both text and math mode, a tilde on its own (~) renders a white space with no line breaking.

In MediaWiki syntax, four tildes are a shortcut for a user's signature. Three and five tildes puts the signature without timestamp and only the timestamp, respectively.

In Common Lisp, the tilde is used as the prefix for format specifiers in format strings.

In Max/MSP, MSP objects have names ending with a tilde. MSP objects process at the computer's sampling rate and mainly deal with sound.

In Standard ML, the tilde is used as the prefix for negative numbers and as the unary negation operator.

In OCaml, the tilde is used to specify the label for a labeled parameter.

In R, the tilde operator is used to separate the left- and right-hand sides in a model formula.

In Object REXX, the twiddle is used as a "message send" symbol. For example, Employee.name~lower() would cause the lower() method to act on the object Employee's name attribute, returning the result of the operation. ~~ returns the object that received the method rather than the result produced. Thus, it can be used when the result need not be returned or when cascading methods are to be used. team~~insert("Jane")~~insert("Joe")~~insert("Steve") would send multiple concurrent insert messages, thus invoking the insert method three consecutive times on the team object.

In Raku, a prefixing tilde converts a value to a string. An infix tilde concatenates strings, taking place of the dot operator in Perl, as the dot is used for member access instead of ->. ~~ is called "the smartmatch operator" and its semantics depend on the type of the right-side argument. Namely, it checks numeric and string equalities, performs regular expression match tests (as opposed to =~ in Perl), and type checking.

my $concatResult = "Hello " ~ "world!";
$concatResult ~~ /<|w><><>*<|w>/;
say $/; # outputs "Hello"
# the $/ variable holds the last regex match result

In YAML, the "Core schema," a set of aliases that processors are recommended to use, resolves a tilde as null.

Keyboards

See also: QWERTY § Multilingual variants

The presence (or absence) of a tilde engraved on the keyboard depends on the territory where it was sold. In either case, computer's system settings determine the keyboard mapping and the default setting will match the engravings on the keys. Even so, it certainly possible to configure a keyboard for a different locale than that supplied by the retailer. On American and British keyboards, the tilde is a standard keytop and pressing it produces a free-standing "ASCII Tilde". To generate a letter with a tilde diacritic requires the US international or UK extended keyboard setting.

  • With US-international, the ~ key is a dead key: pressing that key and then a letter produces the tilde-accented form of that letter. (For example, ~ a produces ã.) With this setting active, an ASCII tilde can be inserted with the dead key followed by the space bar, or alternatively by striking the dead key twice in a row.
  • With UK-extended, the key works normally but becomes a 'dead key' when combined with AltGr. Thus AltGr+# followed by a letter produces the accented form of that letter.
  • With a Mac either of the Alt/Option keys function similarly.
  • With Linux, the compose key facility is used.

Instructions for other national languages and keyboards are beyond the scope of this article.

Backup filenames

The dominant Unix convention for naming backup copies of files is appending a tilde to the original file name. It originated with the Emacs text editor and was adopted by many other editors and some command-line tools.

Emacs also introduced an elaborate numbered backup scheme, with files named filename.~1~, filename.~2~ and so on. It didn't catch on, as the rise of version control software eliminates the need for this usage.

Microsoft filenames

The tilde was part of Microsoft's filename mangling scheme when it extended the FAT file system standard to support long filenames for Microsoft Windows. Programs written prior to this development could only access filenames in the so-called 8.3 format—the filenames consisted of a maximum of eight characters from a restricted character set (e.g. no spaces), followed by a period, followed by three more characters. In order to permit these legacy programs to access files in the FAT file system, each file had to be given two names—one long, more descriptive one, and one that conformed to the 8.3 format. This was accomplished with a name-mangling scheme in which the first six characters of the filename are followed by a tilde and a digit. For example, "Program Files" might become "PROGRA~1".

The tilde symbol is also often used to prefix hidden temporary files that are created when a document is opened in Windows. For example, when a document "Document1.doc" is opened in Word, a file called "~$cument1.doc" is created in the same directory. This file contains information about which user has the file open, to prevent multiple users from attempting to change a document at the same time.

Juggling notation

In the juggling notation system Beatmap, tilde can be added to either "hand" in a pair of fields to say "cross the arms with this hand on top". Mills' Mess is thus represented as (~2x,1)(1,2x)(2x,~1)*.

See also

Notes

  1. alternative association for the same code point
  2. ISO 646 (and ASCII, which it includes) is a standard for 7-bit encoding, providing just 96 printable characters (and 32 control characters). This was insufficient to meet the needs of Western European languages and so the standard specifies certain code points that are available for national variation. With the arrival of 8-bit "extended ASCII", this issue was largely mitigated, though not fully resolved until Unicode was established.
  3. See also Air quotes.

References

  1. "tilde". The Chambers Dictionary (9th ed.). Chambers. 2003. ISBN 0-550-10105-5.
  2. "tilde". The American Heritage Dictionary of the English Language (5th ed.). HarperCollins.
  3. Martin, Charles Trice (1910). The record interpreter : a collection of abbreviations, Latin words and names used in English historical manuscripts and records (2nd ed.). London, preface, p.5
  4. ^ Mackenzie, Charles E. (1980). Coded Character Sets, History and Development (PDF). The Systems Programming Series (1 ed.). Addison-Wesley Publishing Company, Inc. ISBN 978-0-201-14460-4. LCCN 77-90165. Archived (PDF) from the original on May 26, 2016. Retrieved August 25, 2019.
  5. "Meeting of CCITT Working Party on the New Telegraph Alphabet". CCITT. 15 May 1963. See Paragraph 3.
  6. L. L. Griffin, Chairman, X3.2 (29 November 1963). "Memorandum to Members, Alternates, and Consultants of A.S.A. X3.2 and task groups". US Department of the Navy. p. 8.
  7. "Character histories: notes on some ASCII code positions".
  8. "Second ISO draft proposal | 6 and 6 bit character codes for information processing interchange". ISO. December 1963. See paragraph 2
  9. "Swung dash", WordNet (search) (3.0 ed.)
  10. "26 argumentos para seguir defendiendo la Ñ". La Razón. 11 January 2011. Retrieved 31 January 2016.
  11. AFP (18 November 2004). "Batalla de la Ñ: Una aventura quijotesca para defender el alma de la lengua". Periódico ABC Paraguay. Retrieved 31 January 2016.
  12. Diccionario de la lengua española, Real Academia Española
  13. ^ "Tilde". Wolfram/MathWorld. 3 November 2011. Retrieved 11 November 2011.
  14. ^ "All Elementary Mathematics – Mathematical symbols dictionary". Bymath. Archived from the original on 2 May 2015. Retrieved 25 September 2014.
  15. "Character design standards – Maths". Microsoft.
  16. ^ Quinn, Liam. "HTML 4.0 Entities for Symbols and Greek Letters". HTML help. Retrieved 11 November 2011.
  17. "Math Symbols... Those Most Valuable and Important: Approximately Equal Symbol". Solving Math problems. 20 September 2010. Archived from the original on 9 November 2011. Retrieved 11 November 2011.
  18. ^ Bernstein, Joseph (5 January 2015). "The Hidden Language of The ~Tilde~". BuzzFeed News.
  19. Jess Kimball Leslie (5 June 2017). "The Internet Tilde Perfectly Conveys Something We Don't Have the Words to Explain". The Cut.
  20. "What Are Tildes ( ~ ) And How Do You Use Them?". Thesaurus.com. 12 April 2022.
  21. Peek, Philip S. (19 October 2021). Ancient Greek I: A 21st Century Approach; Module 3 - Accents and Accenting Verbs I. Open Book Publishers. pp. 19–26. doi:10.11647/OBP.0264.03. ISBN 978-1-80064-655-1. OCLC 1277513901.
  22. ^ Reimer, Stephen R. (30 May 2015). "IV.vi. Paleography: Scribal Abbreviations". Manuscript Studies: Medieval and Early Modern. Archived from the original on 29 November 2024. Retrieved 5 December 2024.
  23. Ortografía de la lengua española. Madrid: Real Academia Española. 2010. p. 279. ISBN 978-84-670-3426-4.
  24. "Lema en la RAE". Real Academia Española. Retrieved 10 October 2015.
  25. Nestle, Eberhard (1888). Syrische Grammatik mit Litteratur, Chrestomathie und Glossar. Berlin: H. Reuther's Verlagsbuchhandlung. .
  26. Lithuanian Standards Board (LST), proposal for a zigzag diacritic
  27. "R. M. de Azkue: "Euskara-Gaztelania-Frantsesa Hiztegia" / "Diccionario Vasco-Español-Francés" online -Tutorial de uso" (PDF) (in Spanish). Aurten Bai Fundazioa. p. 6. Retrieved 12 February 2024. El autor usaba fuentes propias para representar fenómenos propios de algunos de los dialectos del euskera. Estos son los caracteres especiales utilizados en el diccionario: ã d̃ ẽ ĩ l̃ ñ õ s̃ t̃ ũ x̃.
  28. "Tilde Definition". linfo.org. The Linux Information Project. 24 June 2005. Retrieved 27 January 2020.
  29. "Using a tilde with currency". Stackexchange.
  30. "Appendix 1: Shift_JIS-2004 vs Unicode mapping table", JIS X 0213:2004, X 0213.
  31. Shift-JIS to Unicode, Unicode.
  32. "Windows 932_81". Microsoft. Retrieved 30 July 2010.
  33. ^ CJK Symbols and Punctuation (Unicode 6.2) (PDF) (chart), Unicode, archived from the original (PDF) on 27 August 2013.
  34. Japanese National Committee on ISO/TC97/SC2. ISO-IR-87: Japanese Graphic Character Set for Information Interchange (PDF). ITSCJ/IPSJ.{{citation}}: CS1 maint: numeric names: authors list (link)
  35. Japanese Industrial Standards Committee. ISO-IR-233: Japanese Graphic Character Set for Information Interchange, Plane 1 (Update of ISO-IR 228) (PDF). ITSCJ/IPSJ.
  36. Halfwidth and Fullwidth Forms (PDF) (chart), Unicode.
  37. ^ Errata Fixed in Unicode 8.0.0, Unicode
  38. "windows-949-2000 (lead byte A1)". ICU Demonstration – Converter Explorer. International Components for Unicode.
  39. ^ "Lead Byte A1-A2 (Code page 949)". MSDN. Microsoft. 6 February 2008.
  40. "ibm-1363_P110-1997 (lead byte A1)". ICU Demonstration – Converter Explorer. International Components for Unicode.
  41. "euc-kr (lead byte A1)". ICU Demonstration – Converter Explorer. International Components for Unicode.
  42. ^ "Map (external version) from Mac OS Korean encoding to Unicode 3.2 and later". Apple.
  43. CJK Symbols and Punctuation (PDF) (chart), Unicode
  44. Komatsu, Hiroyuki, L2/14-198: Proposal for the modification of the sample character layout of WAVE_DASH (U+301C) (PDF)
  45. Shift_JIS-2004 (JIS X 0213:2004 Appendix 1) vs Unicode mapping table, x0213.org
  46. "Shift_JIS visualization", Encoding Standard, WHATWG
  47. Xu, Huan; Xia, Dengshan (1 September 2023). "Digital tildes ("∼") may convey more: analyzing innovative uses of tildes in Chinese WeChat messages". Language and Semiotic Studies. 9 (3): 443–460. doi:10.1515/lass-2023-0009. ISSN 2751-7160.
  48. Derbyshire, J (2004), Prime Obsession: Bernhard Riemann and the Greatest Unsolved Problem in Mathematics, New York: Penguin.
  49. "Tilde". Wolfram Research. Retrieved 4 June 2018.
  50. Choy, Stephen TL; Jesudason, Judith Packer; Lee, Peng Yee (1988). Proceedings of the Analysis Conference, Singapore 1986. Elsevier. ISBN 9780080872612.
  51. Wallrapp (1994). "Standardization of flexible body modeling in multibody system codes, Part I: Definition of Standard Input Data". Mechanics of Structures and Machines. 22 (3): 283–304. doi:10.1080/08905459408905214.
  52. Valembois, R. E.; Fisette, P.; Samin, J. C. (1997). "Comparison of Various Techniques for Modelling Flexible Beams in Multibody Dynamics". Nonlinear Dynamics. 12 (4): 367–397. Bibcode:1997NonDy..12..367V. doi:10.1023/A:1008204330035. S2CID 122487067.
  53. Collinge (2002) An Encyclopedia of Language, §4.2.
  54. Hayes, Bruce (2011). Introductory Phonology. John Wiley & Sons. pp. 87–88. ISBN 9781444360134.
  55. Buring, Daniel (2016). Intonation and Meaning. Oxford University Press. pp. 36–41. doi:10.1093/acprof:oso/9780199226269.003.0003. ISBN 978-0-19-922627-6.
  56. ^ "Jargon File 5.0.1". 5 January 2012. Archived from the original on 27 August 2013.
  57. "Tilde expansion", C Library Manual, The GNU project, retrieved 4 July 2010.
  58. "Module mod_userdir", HTTP Server Documentation (version 2.0 ed.), The Apache foundation, retrieved 4 July 2010.
  59. T. Berners-Lee; R. Fielding; L. Masinter (January 2005). Uniform Resource Identifier (URI): Generic Syntax. Network Working Group. doi:10.17487/RFC3986. STD 66. RFC 3986. Internet Standard 66. p. 12. Obsoletes RFC 2732, 2396 and 1808. Updated by RFC 6874, 7320 and 8820. Updates RFC 1738.
  60. "The GNU Awk User's Guide". GNU Manuals Online. Free Software Foundation, Inc. 3.1 How to Use Regular Expressions. Retrieved 20 October 2024.
  61. The PostgreSQL Global Development Group (26 September 2024). "PostgreSQL 17.0 Documentation". 9.7.3. POSIX Regular Expressions. Retrieved 20 October 2024.
  62. "Perl expressions: operators, precedence, string literals". Perldoc Browser. Binding Operators. Retrieved 20 October 2024.
  63. "class Regexp". Documentation for Ruby 3.3. Retrieved 20 October 2024.
  64. ^ "APL2 Programming: Language Reference" (2nd ed.). IBM. February 1994. Retrieved 22 October 2024.
  65. "MATLAB Operators and Special Characters - MATLAB & Simulink". MathWorks. Retrieved 22 October 2024.
  66. ISO/IEC. "Programming languages — C" (PDF). p. 64. Retrieved 19 October 2024.
  67. "syntax across languages (One Big Page)". rigaux.org. Archived from the original on 23 August 2024. Retrieved 28 November 2024.
  68. "MySQL :: Reference Manual :: Bit Functions and Operators". dev.mysql.com. Retrieved 20 December 2019.
  69. "JavaScript Bitwise Operations". W3Schools. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  70. "Bitwise NOT (~) - JavaScript". MDN. 15 August 2023. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  71. "Destructors (C++)". Microsoft Learn. Microsoft. 1 December 2023. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  72. "Finalizers (C# Programming Guide)". Microsoft Learn. Microsoft. 14 March 2023. Archived from the original on 17 November 2024. Retrieved 28 November 2024.
  73. "ASP.NET Core built-in Tag Helpers". Microsoft Learn. Microsoft. 3 June 2022. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  74. "Selectors Level 4" (W3C Working Draft). CSS Working Group. 11 November 2022. 15.4. Subsequent-sibling combinator (~). Archived from the original on 22 November 2024. Retrieved 28 November 2024.
  75. "Expressions". dlang.org. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  76. "Structs, Unions". dlang.org. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  77. "Classes". dlang.org. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  78. "Operator Overloading". dlang.org. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  79. "Arrays". dlang.org. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  80. "Eiffel: Analysis, Design and Programming Language" (PDF) (2nd ed.). ECMA International. June 2006. ECMA-367. Archived from the original (PDF) on 28 November 2024. Retrieved 28 November 2024.
  81. "The Groovy programming language – Operators".
  82. Groovy Regular Expression User Guide, Code haus, archived from the original on 26 July 2010, retrieved 11 November 2010.
  83. Groovy RegExp FAQ, Code haus, archived from the original on 11 July 2010, retrieved 11 November 2010.
  84. "Type Families", Haskell Wiki.
  85. "Lazy pattern match".
  86. Nelson, Graham (July 2001). Routines (4th ed.). Interactive Fiction Library. ISBN 0-9713119-0-0. Archived from the original on 7 June 2024. Retrieved 28 November 2024. {{cite book}}: |work= ignored (help)
  87. "Help:Signatures". MediaWiki. 20 July 2024. Archived from the original on 28 November 2024. Retrieved 28 November 2024.
  88. "CLHS: Section 22.3". Lispworks.com. 11 April 2005. Retrieved 30 July 2010.
  89. Cycling '74. "MSP Basics Tutorial 1: Test Tone". Cycling '74 Documentation. Archived from the original on 6 December 2024. Retrieved 6 December 2024.{{cite web}}: CS1 maint: numeric names: authors list (link)
  90. Fisher, Kathleen. "Learning Standard ML". www.cs.tufts.edu. Expressions II: Minus signs. Retrieved 6 December 2024.
  91. "Labelled and Optional Arguments". OCaml. Archived from the original on 6 December 2024. Retrieved 6 December 2024.
  92. The R Reference Index
  93. Ashley, W. David; Flatscher, Rony G.; Hessling, Mark; McGuire, Rick; Miesfeld, Mark; Peedin, Lee; Tammer, Rainer; Wolfers, Jon (14 August 2009). "Terms, Expressions, and Operators". Open Object Rexx™: Reference. Version 4.0.0 Edition. Archived from the original on 16 January 2021. Retrieved 6 December 2024.
  94. ^ "Operators". Raku documentation. 13 September 2024. Archived from the original on 30 November 2024. Retrieved 6 December 2024.
  95. ^ "Perl to Raku guide - in a nutshell". Raku documentation. 1 August 2024. Archived from the original on 3 December 2024. Retrieved 6 December 2024.
  96. "YAML Ain't Markup Language (YAML™) revision 1.2.2". 1 October 2021. 10.3.2. Tag Resolution. Archived from the original on 24 November 2024. Retrieved 28 November 2024.
  97. "GNU Emacs Lisp Reference Manual". Free Software Foundation, Inc. 27.1.4 Naming Backup Files - Function: make-backup-file-name filename. Retrieved 6 December 2024.
  98. "GNU Emacs Lisp Reference Manual". Free Software Foundation, Inc. 27.1.3 Making and Deleting Numbered Backup Files. Retrieved 6 December 2024.
  99. "How Windows Generates 8.3 File Names from Long File Names". Microsoft.
  100. "Description of how Word creates temporary files". Microsoft Support. Archived from the original on 19 September 2024. Retrieved 3 October 2024.
  101. "The Internet Juggling Database". Archived from the original on 28 July 2005. Retrieved 6 November 2009.

External links

For signing your comments on Misplaced Pages, see Misplaced Pages:Signatures.
Latin script
Alphabets (list)
Letters (list)
Letters of the ISO basic Latin alphabet
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz
Letters using tilde sign ( ◌̃, ◌̰, ◌̴ )
Ãã Ẽẽ Ḛḛ G̃g̃ Ĩ ĩ Ḭḭ L̃l̃ Ɫɫ M̃m̃ Ññ Õõ P̃p̃ R̃r̃ Ũũ Ṵṵ
Ṽṽ Ỹỹ
Multigraphs
Digraphs
Trigraphs
Tetragraphs
Pentagraphstzsch
Keyboard layouts (list)
Historical Standards
Current Standards
Lists
Common logical symbols
 or  & and or ¬  or  ~ not implies implies,
superset
 or  iff | nand universal
quantification
existential
quantification
true,
tautology
false,
contradiction
entails,
proves
entails,
therefore
therefore because
Philosophy portal
icon Mathematics portal
Common punctuation and other typographical symbols
  •   ‘ ’   “ ”   ' '   " "   quotation mark 
  •   ‹ ›   « »   guillemet 
  •   ( )      { }   ⟨ ⟩   bracket 
  •   ”   ditto mark 
Categories: