Talk:Remove vowels from a string: Difference between revisions

m
(This needs fleshing out. Are accented Roman vowel characters not 'vowels' ? Which are the 'vowels' in Greek ? Arabic ? Hindi ? Hangul ?)
 
 
(9 intermediate revisions by 5 users not shown)
Line 1:
===Remove ???? from a string ?===
 
Perhaps worth fleshing this out a bit, to the point where it's more clearly defined, and not '''too''' parochially restricted to the small Anglo-Saxon subset of Roman scripts, let alone scripts in general ?
 
Removing a '''defined subset''' of glyphs from a string seems interesting, but what do we want the meaning of ''vowel'' to be here in terms of the accented vowels used by most Roman scripts, or in the terms of South Asian scripts, Levantine scripts, CJK, Cyrillic, and, in the context of the Rosetta Stone which gives its name to this page, and is displayed in one corner of it, Greek, Demotic, and Hieroglyphic ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 09:20, 26 July 2020 (UTC)
 
:Whatever we name it, many of the implementations do not create another string minus the glyphs, they simply output a series of characters omitting the glyphs. The description appears to require a new string to be constructed, or the original string to be modified. -- [[User:Adadaddy|Adadaddy]] ([[User talk:Adadaddy|talk}}) 18:08, 30 January 2021 (UTC)
 
:: Really? Only C, D, and Prolog, and now Fortran, fail to construct a string afaict. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 19:05, 30 January 2021 (UTC)
 
:The task description should probably be '''Remove a defined subset of glyphs from a string'''. Knowing RC we'll probably have a task '''Remove consonants from a string''' next week. Then RC would not need to be too worried about the definition of vowel.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 15:14, 13 August 2020 (UTC)
 
::Sigh. You aren't wrong. We already have [[Strip control codes and extended characters from a string]] and [[XXXX redacted]] which are essentially this same operation with minuscule differences in ''which'' characters to remove. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 18:07, 13 August 2020 (UTC)
 
:::I propose then, that we rename it, as Nigel suggests, to '''Remove a defined subset of glyphs from a string''', and provide a fractionally less minimal description, requiring that the particular exclusion list is specified and parameterised.
:::That should, at least, forestall any further trivial variants, without imposing much (or any) editing on the existing drafts. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 19:05, 13 August 2020 (UTC)
 
:::: Maybe name it something like [[Strip_a_set_of_characters_from_a_string]]? Oh... wait a minute... The really sad part is that the "author" of ''this'' task added the Ring entry on ''that'' page.--[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 13:04, 24 August 2020 (UTC)
7,794

edits