Questions tagged [letters]

251 questions
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 =…
2
votes
1 answer

Not printing out the proper letter- Python

The question: A- Write a function called has_no_e that returns True if the given word doesn’t have the letter “e” in it. B- Modify your previous program to print only the words that have no “e” and compute the percentage of the words in the list…
Jane
  • 41
  • 2
  • 7
2
votes
1 answer

German Umlaute and Regular Expressions

I've encountered this strange phenomenon severeal times now. If I use an ifstream to feed a program with the content of a file and apply a regular expression to the incoming words, the German letters ä ö ü provide me with some difficulties. If any…
AlexM
  • 325
  • 4
  • 11
2
votes
3 answers

Function that retrieves and returns letters from a list of lists

I'm writing a function that needs to go through a list of lists, collect all letters uppercase or lowercase and then return a list with 1 of each letter that it found in order. If the letter appears multiple times in the list of lists the function…
warrior4223
  • 113
  • 1
  • 1
  • 8
2
votes
1 answer

How to change a Hunspell affix file to allow numbers in words?

OCR programs often mistakenly recognize the capital letter O as a zero or vice versa. For example, they might recognize Over as 0ver or well as we11. I tried to add REP 0 O REP 1 l to the affix file, but it didn't work because numbers are…
Nemo XXX
  • 644
  • 2
  • 14
  • 35
2
votes
2 answers

jquery arabic letters support

This code works very well: Html
Jquery $('').insertAfter('#container'); but the problem in Arabic letters its look like…
2
votes
5 answers

python filter letters in a string

I need a command in python which filters the letters in a string but not deleting them for example: string =raw_input("Enter the string:") if string.startswith("a") and string.endswith("aaa"): print "String accepted" else: print "String not…
2
votes
7 answers

How can I detect a letter character in JavaScript?

I have a number of HTML inputs in a website. They are inside a form, but the form is not submitted to the server. Rather, values of the assorted inputs (number inputs, text inputs, and check boxes) are used to ultimately 'stitch together' a product…
user5171952
2
votes
1 answer

What is the best way to store Danish letters in a SQL Server database?

I work on a big website on a Linux server (PHP) and with a SQL Server database. The SQL Server database uses collation SQL_Latin1_General_CP1_CI_AS. I have a table (let us call it table1) that stores a lot of addresses who are selected from…
2
votes
3 answers

How to make a random text python

I need help to output a random text. I've been given a text with 25k words, from this text_file I've been calculating the probability for the single letters, and the single words to see which letters/words have been used most. Now I need to make a…
py.codan
  • 89
  • 1
  • 11
2
votes
1 answer

CSS make every letter in a text of a different colour

Hi i have to make a text that have different colour for each letter. I have tried to do this, it works. I want to know if there is a faster way to do this, using only CSS. p {font-size: 36px; font-family: sans-serif; } .blue{color:…
2
votes
5 answers

Finding common letters between 2 strings in Python

For a homework assignment, I have to take 2 user inputted strings, and figure out how many letters are common (in the same position of both strings), as well as find common letters.. For example for the two strings 'cat' and 'rat', there are 2…
Hazim
  • 381
  • 1
  • 7
  • 24
2
votes
5 answers

Counting the number of unique letters in a string

I have to write code that counts how many unique letters are in a string: e.g "aabbcdefff" This will return 6 as there are 6 different letters in the string. Currently I have the code: String letters = ("aabbcdefff"); char temp =…
2
votes
1 answer

Getting a chain of letters from a string based on a specific letter

I have a string containing a Polish notation that represents a floor-plan (VLSI placement), and it contains something like: "1234VHV56HV". (FYI, this means: Separate 3 & 4 vertically then separate the result & 2 horizontally then separate the result…
Hazem Labeeb
  • 295
  • 1
  • 3
  • 11
2
votes
2 answers

HTML pattern Arabic letters

I want to insert the Arabic letters in the pattern just like the English letters pattern="[a-zA-Z0-9-_. ]{1,30}" I have no idea how to accomplish the action.
user2303038
  • 45
  • 2
  • 9