Questions tagged [letters]
258 questions
3
votes
1 answer
how i can display arabic letters in cmd
can any one give my solution to display the arabic letters in cmd
i tried to use chcp 1256 and chcp 62001 in cmd but it does not show the arabic letters correctly
but when i search in the internet i found someone who said there is solution but it…
user3752270
- 89
- 2
- 10
3
votes
7 answers
How to go from list of words to a list of distinct letters in Python
Using Python, I'm trying to convert a sentence of words into a flat list of all distinct letters in that sentence.
Here's my current code:
words = 'She sells seashells by the seashore'
ltr = []
# Convert the string that is "words" to a list of its…
Art Metzer
- 63
- 1
- 1
- 3
3
votes
0 answers
PDFBox display hexa codes instead of content
I am using PDFBox to parse a large amount of files and the problem is that for two files, the output contains only hexadecimal digits (0-9A-F). For example, the word "Datum:" is represented as "123456". Is there any way to get the correct content of…
TeoMor
- 643
- 7
- 12
3
votes
3 answers
Generate random lowercase letter in Java over a given range
I am trying to write a method that can take a starting lowercase letter and an ending lowercase letter and generate random letters in that range. Next, the random letters are assigned to the elements of an array of a size determined by the user. So…
Johnny
- 656
- 2
- 14
- 24
3
votes
2 answers
PDFBox UTF16 letters
Does any body can help me with letter issue in PDFBox I'm trying to print letter "ń" ( polish letter ) and I'm getting something like þÿ J . Dı B R O W 2S0 :K0 3I.
Please help!
kingkong
- 1,430
- 6
- 24
- 46
2
votes
3 answers
How check if letters are in string?
It quite hard question to ask but I will try.
I have my 4 letters m u g o . I have also free string word(s).
Let'say: og ogg muogss. I am looking for any wise method to check if I can construct word(s) using only my letters. Please take notice that…
deadfish
- 11,064
- 11
- 79
- 125
2
votes
3 answers
Stripping non A-Z characters in vector in R
I have a vector of usernames that have non A-Z characters in them.
I want to be able to strip those characters out.
I was told to use letters vector but y =x[letters] doesn't seem to work.
Thanks
akz
- 1,625
- 2
- 14
- 13
2
votes
5 answers
Regex - With Space and Special Characters
I'm using the following Regex ^[a-zA-Z0-9]\s{2,20}$ for input
Letters A - Z
Letters a - z
Numbers 0 - 9
The input length must be a least 2 characters and maximum 20 characters.
I also want to enable space in the input, but only space, not new…
user330885
2
votes
3 answers
Function to return only the capital letter(s!) at the beginning of a string?
I'm trying to retrieve the first couple of capital letters from a string in PHP, but I'm not sure if there's a specific function to do this. Should I perhaps resort to using regex? If so, how?
Here's an example of what should be returned (INPUT =>…
Chris
- 2,585
- 5
- 26
- 29
2
votes
3 answers
counting letters for each word in a text with Perl
I am trying to write a program wit Perl which should returns the frequency of all words in the file and the length of each word in the file (not the sum of all characters!) to produce a Zipf curve from a Spanish text (is not a big deal if you don't…
El_Patrón
- 523
- 1
- 9
- 23
2
votes
2 answers
Palindrome C program convert capital letters to small letters
At school Im working on a palindrome C program. I'm almost done, but I would like my program to mark both 'Anna' and 'anna' as a palindrome. I tried some stuff out but nothing really worked.
My code :
#include
#include
int…
DeDaymar
- 23
- 4
2
votes
3 answers
Decompose words into letters with Ruby
In my language there are composite or compound letters, which consists of more than one character, eg "ty", "ny" and even "tty" and "nny". I would like to write a Ruby method (spell) which tokenize words into letters, according to this…
Konstantin
- 2,575
- 2
- 26
- 47
2
votes
2 answers
How do computers differentiate between letters and numbers in binary?
I was just curious because 65 is the same as the letter A
If this is the wrong stack sorry.
GingerFish
- 398
- 3
- 9
- 24
2
votes
4 answers
Numeric to Alphabetic Lettering Function in R
I have written a function which works on the integers from 1 to 702 for converting a number to a letter in a very specific way. Here are some examples of how I would like the lettering function to work:
1 -> A,
2 -> B,
27 -> AA,
29 -> AC,
and so…
ctesta01
- 647
- 5
- 18
2
votes
1 answer
Vbscript copy files based on beginning letters
I am trying to get this script to copy all files starting with "XX". Currently it only copies one file.
Dim objFSO, colFiles, objFile, strDestFolder, objNewestFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set colFiles =…
user3374569
- 37
- 5