Questions tagged [letter]

a character representing one or more of the sounds used in speech; any of the symbols of an alphabet.

448 questions
2
votes
1 answer

SQL Query in MSAccess to Rank a Value Column with Letters based on it's Sort Order

I am trying to write an SQL Query on a table in MSAccess to add a virtual Column that will add sequential Letters of the Alphabet based on a Value column sorted in Descending order. ------------------------------------------------ | Filename …
sifar
  • 1,086
  • 1
  • 17
  • 43
2
votes
7 answers

How do I find the position of the first occurrence of a letter(from the alphabet) in a string?

For example if the string is s = "##catgiraffeapluscompscI" How do I get the output to 2 since the first letter that occurs in this string is at position 2 (c)? I also want this to be able to work for different strings as well (like a function)…
John Materum
  • 37
  • 1
  • 3
2
votes
3 answers

Putting uppercase letters taken from user and putting into an array

In this code im trying to take a string from user and put the uppercase letters into a other array then print it. But im doing something horribly wrong i can tell, can someone help me with this code? #include int main() { char…
gorcc
  • 35
  • 3
2
votes
2 answers

HashSet iterator checking letters

I have a String hashset (called "names") and I want to remove from it all the Strings that contains at least one char that isn't a capital letter. I wrote this code and it doesn't work: Iterator
2
votes
6 answers

How to first letter capital in android , How to capitalise first letter in android?

I want forcefully add first letter capital in EditText. So i can search about i get lots of solution but i Notice that user can shift and enter lower characters. I tried below code : android:inputType="textCapSentences|textCapWords" Also I tried…
Joker
  • 796
  • 1
  • 8
  • 24
2
votes
4 answers

Capitalize letter after exclamation mark

I have string that needs to be capitalized after "!": I have made a script that works to a certain extent but gives me a problem when the last letter is "!". strin "hello! there!" strout = [] for i in range(len(strin)): if strin[i-2]…
2
votes
1 answer

Set the last letters of a string equal PostgreSQL

I have a column 'names' and 'ids' in table "OG" and want to find those names where the last letter is different and the total edit distance is two. So far I have: SELECT z1.names as names1, z2.names as names2, z1.ids, z2.ids FROM (SELECT t.names,…
2
votes
2 answers

Batch Script: How to convert letters into their predefined set of numerical counterparts then sum them up

I found a similar topic and solution by Endoro about converting letters into their numerical counterpart, but in my case I want to use a predefined set of numbers then sum them up with each other. Is that possible? What I meant by that: "A=1"…
Kyle11
  • 23
  • 3
2
votes
4 answers

String contains only the alphabet in haskell

I want to make a functions which decides wheter the character is a letter in the alphabet in Haskell isLetter :: Char -> Bool So the outcome may look like this: if I type isLetter 'c', the outcome will be True, and if it's isLetter ' ', then the…
2
votes
5 answers

Whats the best way to optimize this for loop (letter to number) function?

I have a input stream of cleaned letters that I want to convert into a vector of numbers from 1 to 27 (all letters including space). I can't imagine a nested for loop is the best way to do this though. Is it possible without the loops? space_letters…
2
votes
3 answers

Cipher text Letter Freq Substitution: Comparing 2 dictionaries' dict keys by value and altering a text

I've had a look at similar topics, but no solution I can find exactly compares to what I'm trying to achieve. I have a cipher text that needs to undergo a simple letter substitution based on the frequency of each letter's occurrence in the text. I…
user539945
  • 23
  • 1
  • 4
2
votes
3 answers

Find a substitution that sorts the list

Consider the following words: PINEAPPLE BANANA ARTICHOKE TOMATO The goal is to sort it (in lexicographical order) without moving the words themselves, but using letter substitution. In this example, I can replace the letter P with A and A replace…
FigsHigs
  • 157
  • 8
2
votes
0 answers

How do I find the code for the Special Character ǝ in an IDN and type it?

In searching to resolve this issue I have found several lists of codes that appear to be the same special character, but give different codes from each other. And since I can't seem to type them, I can't verify if any of them is the correct code for…
Webmaster
  • 21
  • 2
2
votes
5 answers

CSS first-letter formatting reducing gap between first and second character

I am using the following css : p::first-letter { font-size: 400%; line-height: 0; } I want to reduce the gap between the first and the second character. For example in this website I want to reduce the space between 'T' and 'h' in the first…
Sujoy
  • 1,051
  • 13
  • 26
2
votes
2 answers

replacing letters (from a phrase) with images

$q = "my phrase with special chars like úção!?"; while ($i < strlen($q)) { echo ''; $i++; } I also tried with switch/case but when I have chars like ç Ç ã â I can't get the image replacing to work since its more than…
lero lero
  • 25
  • 1
  • 4