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
0 answers

Draw letter(text) with UIBezierPath single line

I am using this and this for reference. I am new for using UIBezierPath, and i want to draw path on character(letter) code i am using is as follow. CGMutablePathRef letters = CGPathCreateMutable(); CTFontRef font =…
iCoder86
  • 1,874
  • 6
  • 26
  • 46
2
votes
2 answers

Using Dictionaries to Count First Letter in a String - Python

I've been working on a dictionaries exercise in Python, and I'm fairly new to the language and programming in itself. I've been trying to take a string or list of strings and have my code compare the first letter of the strings and make a dictionary…
Nick
  • 97
  • 3
  • 11
2
votes
1 answer

Java JSpinner Prevent Letter Insertion

A JSpinner is used to store a number in my application (with a SpinnerNumberModel). As expected, the spinner doesn't allow invalid characters (letters, symbols, etc.) to be stored. However, those characters do appear in the spinner component when I…
user356178
2
votes
2 answers

PHP Vertical Alphabet Using FOR Cycle

I'm trying to do a script in PHP which will generate a table with vertical alphabet in it. It will simply echo letters from A to Z and when it comes to Z, it will reset and begin from A again. I have a problem with this because I only can repeat…
2
votes
1 answer

How to find single letter words with gedit

I have a very long text with thousands of words and I'm using gedit in order to read it; some of the words are formed by just one letter (for example the letter "d"); when I use the word searcher by typing ctrl+f the search box pops up; when I type…
Federico Gentile
  • 5,650
  • 10
  • 47
  • 102
2
votes
8 answers

python counting letters in string without count function

I am trying to write a program to count the occurrences of a specific letter in a string without the count function. I made the string into a list and set a loop to count but the count is never changing and i cant figure out why. This is what I have…
Matthew Hanson
  • 321
  • 5
  • 7
  • 15
2
votes
2 answers

Prepend a letter to each line of a text, in ascending order

A bash script writes its output, which is a list of files, into a file. file.txt: /home/user/dir1/dir2/foo00 /home/user/dir1/dir2/foo01 /home/user/dir1/dir2/foo02 I want to prepend a letter to each line, starting with a, and after having reached z,…
manes
  • 119
  • 1
  • 1
  • 9
2
votes
2 answers

how can i insert no more than 5 sentences and no more than 50 letters per each sentence in C

before each sentence it needs to say the number of the sentence im writing. starting the count from one. what i mean is: How many sentences you want to enter [1-5]? 2 sentence 1: write what you want sentence 2: here as long as its less then 50…
lili
  • 45
  • 6
2
votes
2 answers

Function to create lower case words (convert upper to lower letters) doesn't work as expected

I don't see why the following Python code prints out a sentence containing UPPER letters... Please explain! :) def lower(text): text = text.lower() example = "This sentence has BIG LETTERS." lower(example) print(example) Output will be: This…
keyx
  • 567
  • 1
  • 4
  • 5
2
votes
1 answer

Is it possible to apply color to part of a character?

What I am looking for apply to color a part of a letter throught by CSS, html canvas or any other technique. I've found this article about to paint half of a letter. Is it possible to apply CSS to half of a character? My question is if I can paint a…
2
votes
2 answers

how can i find specific letter in character in R

there is a vecter tmp <- c("a", "a.b", "c", "c.g.g", "rr", "r.t") i want find index or true/false including "." the result will be 2,4,6 or F T F T F T how can i do?
Rokmc1050
  • 463
  • 1
  • 6
  • 16
2
votes
2 answers

How to get a random letter from a list of specific letters?

I've started writing some JAVA code and now I want to get a random letter from list of letters given so what should I use for this.
Ivan
  • 29
  • 1
  • 3
2
votes
3 answers

Javascript / jQuery search for letter in string

I'm using JS / jQuery (new to jQuery) and I have a string with a math problem in it, including a variable. (I'm creating a function to solve basic algebra). ie: var $problem = "x+5=11"; // Take off any whitespace from user input $problem =…
Vince
  • 2,596
  • 11
  • 43
  • 76
2
votes
2 answers

Oracle - Use of Between with letters - Between 'A' and 'C'

this doubt is very basic, however, after reading an answer for a given question I got fairly confused (I don't know why as it is a simple subject). Consider this basic query: SELECT * FROM emp WHERE ename BETWEEN ‘A’ AND ‘C’ The employees name…
2
votes
4 answers

Counting letter frequencies

I'm reading in a text file using StreamReader to the program. I need to record the frequency of each letter in the string into an array (where index 0 would be A, and so on). What's the simplest approach for this? Edit: I had this originally, until…
user1797574