Wiktionary:Information desk

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Wiktionary > Discussion rooms > Information desk

You can search in the archives of Information desk:

Welcome to the Information desk of Wiktionary, a place where users can ask questions about words and about Wiktionary, ask for help, or post miscellaneous ideas that don’t fit in any of the other rooms.

To start a new topic, clicking on the “+” tab, or click here: Start a new topic.

Sign your comments with four tildes (~~~~), code which produces your signature, followed by a UTC timestamp.

For past questions, see /Archives.

Information desk archives edit
2024

2023
Earlier years

2022

2021

2020

2019

2018

2017

2016

2015
2014
pre-2014


تلفاز

[edit]

There is a citation to a dictionary in this article, but the dictionary in question does not appear to contain the word. I'm not sure how we handle this sort of problem in WT: should I simply remove the reference, or what? (I looked for a cleanup tag like w:Template:failed verification to apply, but I didn't find one.) ColinFine (talk) 16:26, 1 July 2024 (UTC)Reply

@ColinFine: It is in page 116. — Fenakhay (حيطي · مساهماتي) 16:52, 1 July 2024 (UTC)Reply
Thanks. I didn't think of looking before the page that the link delivered me to, particularly since تلفيريك is on that page - I didn't notice the ya before the fa (and I'm not very familiar with Arabic alphabetical order). So the problem is with ejtaal.net's indexing then. Is there a way of fixing the link to point to the right place nevertheless? ColinFine (talk) 17:03, 1 July 2024 (UTC)Reply

Question.

[edit]

Question. Is there a category or special page where one can check entries that have no etymologies? [Saviourofthe] ୨୧ 14:09, 2 July 2024 (UTC)Reply

This will show you every page that links to or transcludes {{rfe}}, which is a start. —Justin (koavf)TCM 16:58, 2 July 2024 (UTC)Reply
{{rfe}} also categorizes by language. Vininn126 (talk) 06:24, 7 July 2024 (UTC)Reply

I just edited an entry, and then made an account. Can that edit be added to my contributions?

[edit]

I added an etymology for the Sanskrit term चेतना#Etymology anonymously. I then created an account, because I thought I might make contributions later on. Is it possible to add to my contributions under my account?

https://en.wiktionary.org/w/index.php?title=%E0%A4%9A%E0%A5%87%E0%A4%A4%E0%A4%A8%E0%A4%BE&oldid=80706972

https://en.wiktionary.org/w/index.php?title=%E0%A4%9A%E0%A5%87%E0%A4%A4%E0%A4%A8%E0%A4%BE&oldid=80706977 Sophrosyne42 (talk) 22:03, 13 July 2024 (UTC)Reply

Reassigning edits is not really (if ever?) done. —Justin (koavf)TCM 22:05, 13 July 2024 (UTC)Reply

How to remove Japanese transliteration?

[edit]

I'm trying to remove all instances of Latin transliteration appearing in brackets after Japanese words. (For myself only.)

Since I am only starting out in CSS and Javascript, could someone provide me with working code to add to my custom files?

So far, I've managed to hide the letters and dot via my custom CSS. This leaves the brackets, which I don't seem to know how to replace with whitespace in my common.js.

Arachnosuchus (talk) 16:50, 14 July 2024 (UTC)Reply

Can you please give me some examples of pages with the transliterations you want to hide so I can see what's going on? DalsoLoonaOT12 (talk) 18:07, 29 July 2024 (UTC)Reply

I tried it with 表外漢字 and unfortunately, as for the .headword-line, the left parenthesis seems to be a text nodes directly under it, and the right parenthesis is under its parent <p> element for some reason (that's so messy, why is it like that 😭); as text nodes, they can't be styled independently (but I've wished they were). I'm trying to hide the relevant element and then unhide the part with the Japanese, and as of now the closest I've gotten is just making the <p> with the .headword-line transparent (using :has, so I hope your browser supports that—I hope MediaWiki supports it seeing as it's just CSS) by setting its color to rgba(0,0,0,0) and then making the text another visible color. The parentheses will still be selectable and may appear when selected (depending on your browser), but it's the only way I was able to hide them without using JS.

The 表外漢字 page also had ローマ字 transliterations in the #Synonyms and #See also sections, and those were only identified in the HTML as being transliterations (<span class="tr">) (though thankfully, the parentheses this time were in classed spans (<span class="mention-gloss-paren annotation-paren">) and thus stylable). As such, I could select based on them being siblings of the linked pages, which were helpfully in <span>s with lang="ja", so I could select the transliterations as siblings within the <li> they were in, and thus not have to hide all transcriptions from all languages

Basically, this is messy and kind of cursed, and I hope it works because it would be really embarrassing if it didn't.

a:link,
a:visited
{
color: rgb(229 122 58);
}

.e-transliteration,
.headword-tr,
.headword-tr.tr.Latn,
.headword-line>a
{
display: none;
}

p:has(span.headword-line) {
color: rgba(0,0,0,0)
}

p span.headword-line span:first-of-type {
color: black;
}

li span[lang="ja"] ~ span.mention-gloss-paren.annotation-paren, li span[lang="ja"] ~ span.tr {
display: none;
}
Fun fact: it took longer to figure out how to post the code here than it took to actually write it, because each possible method was showing its own quirks that made it unusable.
  • <syntaxhighlight> added non-removable colons to the start of every non-first line for some reason. ALSO, <syntaxhighlight> did not persist over newlines (so even if the closing tag was multiple lines below, only the first line would be affected)
  • <pre> forcibly stripped newlines (even when they were manually specified with <br>, even when white-space was set to pre, and did not persist over newlines.
  • {{code}} forcibly stripped newlines.
  • Making a regular div and making it look like code with CSS did not persist over newlines somehow. I had to do this and replace every line break with a <br> for some reason.
Something is wrong with MediaWiki. Also, my browser crashed twice. DalsoLoonaOT12 (talk) 19:07, 29 July 2024 (UTC)Reply
Unfortunately, this seems to break certain pages like ローマ字, where the <p> with the parentheses also contains additional information which gets hidden.
Note: There is no ("n") in ローマ • ([transcription removed]) . ローマ is borrowed from Portuguese. Compare however ローマン体 (“roman type”), which uses ローマン; [sic] borrowed from English.
All of the text besides the parentheses also gets hidden. It looks like you'll have to resort to JavaScript. DalsoLoonaOT12 (talk) 19:17, 29 July 2024 (UTC)Reply

This script should remove the definition romajis (I hope).

/*This is part 1 of a set of code-things meant to remove romaji transliterations from Wiktionary pages.
This one targets romaji in definitions. Part 2 will be a .css file, and targets romaji in "See also" entries.*/

romajis = document.querySelectorAll('span[lang="ja-Latn"]');

function getNodeSiblings(node) {
return Array.from(node.parentElement.childNodes);
}

for(var i = 0; i < romajis.length; i++) {
var node = romajis[i];
var parent = node.parentElement;
var siblings = Array.from(parent.childNodes);
var thisNodeSiblingIndex = siblings.indexOf(node);
var siblingN_Minus_3 = siblings[thisNodeSiblingIndex - 3];
var siblingN_Minus_2 = siblings[thisNodeSiblingIndex - 2];
var siblingN_Minus_1 = siblings[thisNodeSiblingIndex - 1];
var piblings = getNodeSiblings(parent);
var parentPiblingIndex = piblings.indexOf(parent);
var nextPibling = piblings[parentPiblingIndex + 1];
var spaceRightparenOrNbspRegex = RegExp("[\\) " + (String.fromCodePoint(0xA0) + "]"),"g");

if((typeof(siblingN_Minus_1.textContent) === "string") && siblingN_Minus_1.textContent.endsWith("(")) {
parent.removeChild(siblingN_Minus_1);
siblingN_Minus_1 = null;
if((typeof(siblingN_Minus_2.textContent) === "string") && siblingN_Minus_2.textContent.includes("•")) {
parent.removeChild(siblingN_Minus_2);
siblingN_Minus_2 = null;
}
if(typeof(nextPibling.textContent) !== "undefined") {
nextPibling.textContent = nextPibling.textContent.replace(spaceRightparenOrNbspRegex,"");
if(nextPibling.textContent == "") {
parent.parentElement.removeChild(nextPibling);
}
}
}

parent.removeChild(node);
node = null;
}
This CSS (a portion of the previous CSS attempt) should remove the "See also" romaji (your existing change to the color of links has been preserved).
a:link,
a:visited
{
color: rgb(229 122 58);
}

li span[lang="ja"] ~ span.mention-gloss-paren.annotation-paren, li span[lang="ja"] ~ span.tr {
display: none;
}
DalsoLoonaOT12 (talk) 20:13, 29 July 2024 (UTC)Reply

Proto-Indo-European noun template doesn't show gender

[edit]

Template ine-noun is broken since 28 May, 2024 and does not show the word's gender. I'm new to template coding and don't know the last editor's intent. Does somebody more experienced know how to fix it? 37.79.13.111 18:56, 14 July 2024 (UTC)Reply

I think I fixed it. When I edited the code, I left out one of the arguments. I have more experience with template coding, but not a lot. Sorry about that, and I hope others will check my code. Chuck Entz (talk) 20:51, 14 July 2024 (UTC)Reply

Add subpage to locked page

[edit]

I created this page: https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists/Cantonese

I want to add it to the "Frequency Lists" section of this locked page: https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists

Is this automatically done by the maintainer or do I need to ask somewhere (new to Wiktionary contributions)? LachyMcD (talk) 06:24, 17 July 2024 (UTC)Reply

Deleted Page in Latin

[edit]

I am new to Wiktionary procedures, so please excuse my ignorance. I looked for an entry for the Latin word "explētīvus", which is listed in LLPSI as Latin for "expletive". But there is no page for it -- it looks like there was a page, but it was deleted. Perhaps by "EncycloPetey". I tried to dig down and find out why, but the entry for that time date seemed to be something entirely different.

Why is there no entry for a normal (I think) part of speech, like the is for "participium" or "coniūnctiō"? Gpaetz (talk) 08:05, 24 July 2024 (UTC)Reply

At the very least, I can confirm that explētīvus is not a page that we have ever had, but there was an expletivus that was in fact deleted by User:EncycloPetey. That page was just pure junk, so it's not like the term can't have an entry here. If you're familiar with Latin and how to make Latin entries, have at it. As to your question, participium and coniunctio (not coniūnctiō) do exist here. —Justin (koavf)TCM 10:31, 24 July 2024 (UTC)Reply

How to search by pronunciation?

[edit]

Since language is primarily a spoken phenomenon, of which the written forms are but an adjunct, it'd be great to be able to search entries by their IPA transcriptions. Is such a thing possible? If so, how does one do it? PaulTanenbaum (talk) 14:44, 24 July 2024 (UTC)Reply

It’s pretty hacky, but you could run a search like incategory:"English lemmas" insource:tɜːm insource:/\/tɜːm\// to search for English entries with IPA transcription /tɜːm/. (The middle part, insource:tɜːm, isn’t strictly necessary but can make the search run faster.) Replace “English” and both “tɜːm”s above as desired to search for any other term in whatever language you like. — Vorziblix (talk · contribs) 13:07, 25 July 2024 (UTC)Reply
Try a google search for site:en.wiktionary.org tɜːm Justin the Just (talk) 11:47, 27 July 2024 (UTC)Reply
There's also this (replace "fu" with whatever you're searching for) although (probably as with other searching methods) it's exacting and a search for /fu.fu/ will not find /fuˌfu/ or /fufu/, nor vice versa. - -sche (discuss) 06:16, 31 July 2024 (UTC)Reply

-이 for vowels?

[edit]
Discussion moved to Wiktionary:Tea room.

Can someone explain the purpose of language-prefixed categories versus non-prefixed categories for the same things?

[edit]

For example: Category:en:Incel community vs. Category:English incel slang. Everything in the first category is "incel slang" too. 2601:644:9083:5730:299E:2A94:6647:A68E 06:01, 31 July 2024 (UTC)Reply

In the general case, the reason why such things sometimes exist is, as the category descriptions say, because one is a topical category for terms relating to a particular topic, and the other is a restricted-usage category for terms only certain people use. In some cases, such categories have very different contents, e.g. if there are lots of terms used by outsiders to refer to topic X, which members of the X community don't use in their own X jargon, and conversely members of the X community have their own slang words for lots of other [non-X-related] topics. In other cases, however, such categories can indeed seem or be quite duplicative (sometimes even to the point that suggesting deleting one of them is worthwhile). Our categorization system unfortunately isn't great at handling that second type of situation. Due to the fact that in the general case "words from any dialect, all relating to a particular topic" and "words from a particular dialect, about any topic" are clearly very different, we have separate types of categories for those two types of things, and they all have subcategories... even when the subcategories get to the point where we're just putting the same ~50 terms in both categories. - -sche (discuss) 06:23, 31 July 2024 (UTC)Reply