Questions tagged [abbreviation]

For questions related to short forms of words or phrases.

203 questions
3
votes
2 answers

Method naming conventions for common type of functions

Problem description I often find myself thinking about a method name for the function I'm about the write. Like setters and getters to change or get the object's state. Maybe I am using objects not in the right way, but I often find myself in…
Joop
  • 3,706
  • 34
  • 55
3
votes
1 answer

A string searching algorithm to quickly match an abbreviation in a large list of unabbreviated strings?

I am having a lot of trouble finding a string matching algorithm that fits my requirements. I have a very large database of strings in an unabbreviated form that need to be matched to an arbitrary abbreviation. A string that is an actual substring…
D..
  • 133
  • 1
  • 5
3
votes
2 answers

Mapping IANA/Olson timezone database to abbreviations (like EST, PST, etc)

I need to map IANA/Olson timezone id to abbreviations, like EST, PST, etc. I understand that this is not 1-to-1 mapping and that, for example, for EST there are quite a bunch of IANA timezones. Is there some kind of database/mapping I can use for…
Eugene Loy
  • 12,224
  • 8
  • 53
  • 79
3
votes
2 answers

Upper or lower case inside in abbreviation tags?

Since HTML5 does not support Microsoft's tag, we're left with using the abbreviation element: MS When it comes to capitalization, cases like that are obvious: it needs to be capitalized. However, what about…
Baumr
  • 6,124
  • 14
  • 37
  • 63
2
votes
3 answers

What does .h and .m stand for?

Exact duplicate: Why do Objective C files use the .m extension? I'm thinking .h stands for header. I suppose .m could stand for main, but I don't know. Do any of you actually know this? Just to clarify, I know what goes in which file. (i.e. I…
tmadsen
  • 941
  • 7
  • 14
2
votes
1 answer

Extending dabbrev-expand

Has anybody tried extending the completion mechanism of dabbrev-expand to support different sorts of completion mechanism (defined in minibuffer.el)? I know of mdabbrev-expand but it only does in-symbol completion and its incomplete for example with…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
2
votes
0 answers

Plotly Dash - Change number abbreviations format

I have lots of tables and plots shown about transactions on my web app, with the frontend based on Dash. The issue is that Plotly uses d3 format to format all numbers, and d3 format doesn't include "Million" & "Billion". Therefore, I'm getting the…
Adridot
  • 61
  • 5
2
votes
0 answers

Memoization and Recursion Implementation in Hackerrank Abbreviation Problem In Golang

So I was attempting to do the Hackerrank Abbreviation problem by using recursion and memoization. It was fine when the test case is short but when the string started to get large, I found that my code ends halfway (according to what i saw in the…
2
votes
1 answer

Share abbreviations between major modes in abbrev-mode (Emacs)

I'd like to ask whether there is a way to share abbreviation definitions for abbrev-mode between several major modes. E.g.: in LaTeX-mode I'd like to have not only the latex-mode abbrevs (and of course the global ones) but also all those defined for…
user673592
  • 2,090
  • 1
  • 22
  • 37
2
votes
1 answer

Have screen reader pronounce Country codes in a text input as individual letters

I am working on an Angular app that displays selected Country codes in a text field. This input displays Country codes because of space constraints:
2
votes
4 answers

Function turning a string into acronym in R

I have a string "California Art Craft Painting Society" and I want to write a function x in R that can turn any string into an acronym "CACPS". I used the following code: acronym <- function(x){ abbreviate(x) } Is there a way to write the…
Jake Parker
  • 241
  • 1
  • 7
2
votes
1 answer

find abbreviation right after a specific word using regular expression

My goal is to identify abbreviation word that appears right after @PROG$ and change it to @PROG$. (eg. ALI -> @PROG$) Input s = "Background (UNASSIGNED): Previous study of ours showed that @PROG$ (ALI) and C-reactive protein (CRP) are independent…
JJ_K
  • 23
  • 5
2
votes
1 answer

Is there a way to tell Fish shell to correct common typos in commands with spaces?

I'm fairly new to Fish, and I like it so far, but I'm annoyed that abbreviations can't have spaces. For example, when I type git statsu, which I do more often than the actual command of git status, I want it to replace the text with the correct…
Matt McCarthy
  • 424
  • 6
  • 19
2
votes
0 answers

Windows: How to correct wrong month names in operating system level?

We have an application that uses AbbreviatedMonthGenitiveNames to populate month names in a time line. AddValuesToDictionary(resources, "dtpMonthShort", CultureInfo.CurrentUICulture.DateTimeFormat.AbbreviatedMonthGenitiveNames); It seems, that the…
2
votes
2 answers

Is there a way to abbreviate each element of an object in R?

I want to abbreviate each word in an object that is longer than 5 characters and replace the removed characters with a "." i.e. x <- "this example sentence I have given here" would become "this examp. sente. i have given here" I imagine this would…
EcoEvoJen
  • 37
  • 2