Python Learning: Automate Boring Stuff with Python | Chapter 8 : My Solution to Project Regex Search

Searching through a list of text files in a given directory …

I personally found this enjoyable. It was easier to solve compared to last problem. What I can say at this stage is, learn how to search to documentation and google! It helps… heheh..

oh yea, leave your suggestions in the comment box. see ya

 

 


#directory searcher: searches through a directory for text files and looks for what files contain a given regular expression
#Usage: python dirsearch.py <regexpression> <directory>

import sys, os, re



#TODO: GET COMMAND LINE ARGUMENTS 
if len(  sys.argv  ) >= 2:
	directory = "." #if the user gives no directory path
	if len( sys.argv) == 3:
		directory = sys.argv[2] #if there exists a given directory
#TODO: ISOLATE DIRECTORY AND REGULAR EXPRESSION 
	directory = os.path.abspath(directory)
	regularExpression = sys.argv[1]
	regexpression = re.compile(regularExpression)
#TODO: CHECK IF DIRECTORY EXISTS
	if not os.path.exists(directory):
		print("directory does not exist")
	if not regexpression.pattern:
		print("Regular expression is invalid")
	else:
		#TODO: GET LIST OF FILES IN DIRECTORY
		allfilePaths = os.listdir(directory)
		results = []
		#TODO: LOOP AND CHECK THROUGH THE TEXT FILES 
		for filePath in allfilePaths:
			ext = os.path.basename(filePath)
			if not "txt" in ext:
				continue
			#TODO: READ THE CONTENT AND MATCH ONLY IF TEXTFILE
			file = open(filePath)
			holder = []
			#RESULT HOLDER 
			for line in file.readlines():
				#TODO: IF MATCHED CREATE STRING AND STORE INTO UPDATE ARRAY 
				if regexpression.search(line):
					holder.append(  "MATCH: " + line + "\n" )
			#TODO: CLOSE FILE WHEN DONE READING
			if len( holder ) <= 0:
				continue
			holder = filePath + "\n" + "*"*20 + "\n" + "".join(holder)
			holder +="\n"*2
			results.append(holder)
			file.close()
		#TODO: PRINT RESULT
		for result in results:
			print(result)
else:
	print("Usage: python dirsearch.py <regexpression> <directory>(optional)")


 

Book : Automate the Boring Stuff with Python

Python Learning: Automate Boring Stuff with Python | Chapter 8 : My Solution to Project Madlib

Creating MadLib:

 

It was quite a task to solve this problem but worth it. I learned how to retrieve command line arguments using sys module, regex to match and search for the keyword in a given string, and os to create new files and open files.  I think a step further would be to allowing the user provide the list of keywords dynamically (using input function), then using those keywords against the given text file.

The next task is Regex Search according to the book and I look forward to it.

Do provide your suggestions in the comment box below.


#madlib : Scans text and replaces ADVERB, ADJECTIVE, NOUN and VERB with user values 
#Usage python madlib.py <textfile>

import sys, re, os


keywords = ("adverb", "adjective", "noun", "verb")
#TODO: READ COMMAND LINE ARGUMENTS 
if len( sys.argv ) == 2:
#TODO: CHECK VALIDITY OF TEXT PATH GIVEN
	if os.path.exists( sys.argv[1] ):
		#TODO: READ CONTENT OF FILE 
		textFile = open(os.path.abspath( sys.argv[1]  ))
		content = textFile.readlines()
		textFile.close()
		if len( content ) <= 0:
			print("File is empty")
		else:
			#TODO: LOOP THROUGH KEYWORDS, ASK USER FOR REPLACEMENT AND SUBSTITUTE WORD 
			#get name of file 
			textFileName = os.path.basename(  (os.path.abspath( sys.argv[1]  ))   )
			textFileName = textFileName.split(".")
			
			#create a new name for text file 
			textFilePath = os.path.join(os.path.dirname(
			sys.argv[1] ), 
			"{}_updated.{}".format(textFileName[0], textFileName[1] ) 
			)
			textFile = open(os.path.abspath(textFilePath ), "w" )
			textFile.write("")
			textFile.close()
			textFile = open(textFilePath, "a")
			for line in content:
				#loop over each line in content list
				updateline = line
				for keyword in keywords:
					#loop over each keyword in keywords 
					#check for match of keyword in updateline 
					pattern = r"({}|{})".format( keyword.lower(), keyword.upper() )
					reg = re.compile(pattern)
					if reg.search(updateline):
						#if 'adverb' is in the first line e.g. 
						#replace the word with user input 
						replWord = input("What word to replace {}:  ".format( keyword ))
						#check if user provided a replacement
						if replWord:
							#replace word 
							updateline = re.sub(pattern, replWord, updateline)
						#if user did not provide leave the updateline unmodified 
					#if no match is found leave the updateline unmodified
				#after each substitution of a key word, write the updateline in the textFile
				textFile.write(updateline)
			#when entire content is updated, close file 
			textFile.close()
				
	else:
		print("Given path does not exist")
		
	textFile.close()
else:
	print("Provide a text file path")




#TODO: PRINT RESULT AND UPDATE FILE WITH NEW CONTENT

Korean and German Language Learning Report | Alexander Bell’ Famous Quote

When one door closes, another will open 

Wenn eine Tür schließt, eine andere öffnet 

하나의 문이 닫힐 때, 다른 문의 하나가 열리는 것이다 


The list of expressions collected after reading the article about Alexander bell’s famous saying is provided below:

  1. Famous Saying
    1. berühmter Satz
    2. berühmten Gedanken
    3. berühmter Spruch.
      1. Es gibt einen berühmten Gedanken von Baron de Rothschild.
      2. You know, there’s a famous saying by the Baron de Rothschild
    4. 명언
      1. 상관 없어요, 어떻게든 -명언입니다, 명언
      2. It doesn’t matter. – What a saying.
  2. why is it so slow
    1. 왜 이렇게 느려?
    2. 왜 이렇게 느리지?
    3. 왜 이렇게 느린 것인가?
      1. 오늘 왜 이렇게 시간이 느리게 지나가지? 벌써 오후 6시였으면 좋겠어.
      2. Why is time passing so slow today? I wish it was 6 p.m. already.
    4. Warum dauert es zu lange ?
      1. Why is it taking too long ?
  3. To found a company /  establish a company
    1. 회사를 설립하다
      1. 1978년에 그는 이 프로젝트를 계속 진행하기 위해 자신의 회사를 설립했다.
      2. In 1978, he founded his own company to continue work on the project.
    2. Eine Firma gründen
      1. Schließlich werde ich mit diesem Geld eine Firma gründen.
      2. I’ll start a business with the money.
  4. ①hang; dangle ②cling to; take hold of ③stick to ④adhere to; cling to
    1. 매달리다
      1. 그는 하루종일 전화에 매달려 있어요.
      2. He’s on the phone all day.
    2. klammern sich an
      1. Die Mitglieder klammern sich an den Manager und sind daher abhängig.
      2. Members cling to dependence on manager.
  5. Can you imagine  ?
    1. 상상이 되다
      1. 난 그의 반응이 충분히 상상이 돼
      2. I can just imagine his reaction.
    2. Kannst du dir vorstellen
      1. Kannst du dir vorstellen, welche Geheimnisse dort begraben sind?
      2. Can you imagine the secrets buried in there?
  6. experience failure
    1. 실패를 겪다
      1. 수많은 실패를 겪은 후에 토니는 농부가 되었다.
      2. After all the failure he went through, Tony went on the land.
      3. 토마스 에디슨은 전구를 발명하기 전까지 너무나 많은 실패를 겪었어.
      4. Thomas Edison failed so many times before he invented the light bulb.
    2. Misserfolge erfahren
      1. Ich erfahre normalerweise keine Misserfolge.
      2. I don’t normally experience failure.
  7. in detail; minutely
    1. 자세히
      1. 그게 저한테 맞을 거 같네요. 더 자세히 말해 주세요.
      2. That sounds like what I need. Tell me more about it.
    2. Ausführlich, im Detail
      1. Am 27. April 2010 antworteten die litauischen Behörden ausführlich.
      2. The Lithuanian authorities replied in detail on 27 April 2010.
      3. In den folgenden Abschnitten sind diese Referenzen im Detail beschrieben.
      4. The subsequent sections describe these credentials in detail.

 

Python Learning: Automate Boring Stuff with Python | Chapter 8 : My Solution to Project Multiclipboard




#mcb.pyw : Saves and loads pieces of text to the clipboard 
#Usage: py.exe mcb.pyw save &lt;keyword&gt; - Saves clipboard to keyword
# py.exe mcb.pyw &lt;keyword&gt; - Loads keyword to clipboard 
# py.exe mcb.pyw list - Loads all keywords to clipboard
# py.exe mcb.pyw read &lt;path text file&gt; &lt;keyword&gt;

import shelve, pyperclip, sys, os,re

<br data-mce-bogus="1">

mcbShelf = shelve.open("mcb")
 
if len(sys.argv) == 4 and sys.argv[1].lower() == "read":
    #TODO: read file and save to shelf 
    #check if path is valid
    path = sys.argv[2]
    if os.path.exists(path):
       #check if path is a text file 
       if ".txt" in os.path.basename(path):
         #read file 
         file = open(os.path.abspath(path))
         content = file.read()
         #close file 
         file.close()
         key = sys.argv[3]
         mcbShelf[key] = content
       else:
         print("Path should lead to a text file")
   else:
     print("Path does not exist")
   #TODO: Save clipboard content 
elif len(sys.argv) == 3 and sys.argv[1].lower() == "save":
   content = pyperclip.paste() #copies the clipboard content 
   mcbShelf[sys.argv[2]] = content #stores the content to the keyword in the shelf object 
   #TODO : List keywords and load content 
elif len(sys.argv) == 2:
   keys = list(mcbShelf.keys())
   if sys.argv[1].lower() == "list":
     content = ""
     for pos in range(len(keys)):
       content += "{}. ".format(pos) + keys[pos] + "\n" 
       #content += mcbShelf[key] + "\n"*2
       #content += "-"*20 + "\n"*2
       pyperclip.copy(content)
       print(content)
   else:
      #TODO: Load keyword to clipboard
   if sys.argv[1] in keys:
     content = mcbShelf[sys.argv[1]]
     #paste to clipboard
     pyperclip.copy(content)
     print("\tkeyword: \n{}\n\tcontent: \n\n{}".format(sys.argv[1], content ) )
  else:
    print("Your command line arguments are invalid")
  



mcbShelf.close()

 

Python Learning: Automate Boring Stuff with Python | Solution to Part II Chapter 7 Practice Project II

</pre>







import re

#first argument - string to be stripped
#second argument - char or default " "
def customStrip(string: str, stripChar: str="\s")->str:
'''
Removes specified character from the beginning and end of a given string
arguments:
string: str
stripChar: str
returns:
string
'''
if stripChar == "" or stripChar == " ":
stripChar = "\s"
patternString = r"({}+)".format(stripChar)
actions = ("^" + patternString,patternString + "$")
for p in actions:
pattern = re.compile(p)
string = pattern.sub("",string)
return string

texts = [
" aa dfgfhjgs, afktgrg aaa ",
"aaaaaaaaaaaaaaaajfdgf fdfgjkerturt aaaaa"
]

for text in texts:
st = customStrip(text, "a")
print("The text \n{}\n has {}characters.\nAfter strip \n{} \n====\n it now has {}".format(text,len(text),st,len(st)))
print("-------------------------------------------")









<pre>

Python Learning: Automate Boring Stuff with Python | Solution to Part II Chapter 7 Practice Project I

</pre>
<pre>


import re import re 
#eight chars long #upper and lower case chars #at least one digit

patternHasDigit = re.compile(r"\d+")
patternHasLower = re.compile(r"[a-z]+")
patternHasUpper = re.compile(r"[A-Z]+")

patterns = (patternHasDigit, patternHasLower, patternHasUpper)
tests = ["asdfgh57887", "Asfkg35a", "23454990-","ASHGFDSFGHFDSDFGDS"]
for test in tests: 
status = True for pattern in patterns: 
if pattern.search(test) == None: 
  print("{} failed {} test".format(test, pattern.pattern)) 
  status = False if status: print("{} did match".format(test))
else: print("{} did not match".format(test)) status = True

Korean and German Phrase List – Nov (Final Week)

  1. Computer with Internet (access)
    1. 인터넷이 연결된 컴퓨터
      1. 또한 공항이든 카페든 인터넷이 연결된 컴퓨터에서라면 어디서나 편집이 가능합니다.
      2. Plus, editing is possible from any computer with Internet access, whether in an airport or at a cafe.
    2. Computer mit Internet
      1. – Arbeiten im territorialen Form für die gesamte Bevölkerung von Argentinien, aber vor allem Kinder, haben Zugang zu einem Computer mit Internet und das erforderliche Wissen, um diese Tools zu benutzen.
      2. – Working in territorial form for all inhabitants of Argentina, but mostly children, have access to a computer with Internet and knowledge needed to use these tools.
  2. To affect smth/someone
    1. sich auswirken auf
      1. Well, the accident shouldn’t affect your huntington’s. I know that.
      2. Nun, der Unfall sollte sich nicht auf Huntington auswirken.
    2. 영향을 준다
    3. 영향을 미친다
      1. 무더운 날씨는 사람들의 감정과 행동에 영향을 미친다.
      2. Very hot weather affects how people feel and act.
  3. negative consequences
    1. 부정적인 결과
      1. 바다 속 플라스틱 쓰레기는 해양 생물, 환경, 현지 경제에 좋지 않은 결과를 가져다 준다.
      2. Plastic waste in oceans has negative consequences for marine life, the environment, and local economies.
  4. Insufficient
    1. Unzureichend, ungenügend
      1. In vielen Ländern sind die Investitionen in wesentliche Geburtshilfedienste nach wie vor unzureichend.
      2. Investment in essential obstetric care remains insufficient in many countries.
  5. participate in
    1. 에 참여한다
      1. 교내 기금모집 행사에 참여한다.
      2. Participate in fundraising activities for the school.
      3. 아니요, 지금은 프로그램에 참여하지 않습니다.
      4. No, I don’t want to participate in the program.
    2. Teilnehmen. an , beteiligen an
      1. Auch beteiligen wir uns an Veranstaltungen auf dem Gebiet des fairen Handels
      2. We also participate in Fair Trade events.
  6. Deals with, relates to
    1. Befasst sich mit
  7. Analyze
    1. 분석하다
      1. 그 사람은 앉아서 자신의 판매현황표를 분석해보았다
      2. He sat down to analyze his sales charts.
    2. Analyzierien
  8. What should I do to
    1. 려면 어떻게 해야 되죠?
      1. 이 문제를 해결하려면 어떻게 해야 되죠?
      2. What should I do to solve this problem?
      3. 려면 무엇을 해야 할까요?
      4. What should I do to become a spaceman?
    2. Was soll ich machen/ tun um zu..
      1. Was muss ich tun, um Verbrennungen zu vermeiden?
      2. What should I do to prevent burns?
  9. All that is left is to ….
    1. 는 일만 남았는데
      1. 그녀와 M-Net이 계약을 하는 일만 남아있을 뿐이다.
      2. All that is left to do is for Lee and M-Net to sign the contract.
    2. Es bleibt mir/ihnen noch..zu
      1. All that is left is for me to thank all those involved, who have striven over the years to achieve this result. I hope that the intended beneficiaries will indeed be able to reap the benefits of it as quickly as possible.
      2. Es bleibt mir nur noch, allen Beteiligten meinen Dank auszusprechen, die in jahrelangen Bemühungen zu diesem Ergebnis gekommen sind, und ich hoffe, daß diejenigen, die Nutznießer sein sollen, auch sobald als möglich in den Genuß dieser Vorteile kommen.
  10. To inflict pain
    1. Schmerzen zufügen
      1. Sie werden ihr nur noch mehr Schmerzen zufügen.
      2. They will only inflict more pain.
    2. (…에게) 고통을 주다.
      1. 남에게 고통을 주다.
      2. inflict pain on a person
      3. 어른이기 때문에 정당화되는 일정 범위의 고통을 부모가 고의로 준다는 것은 옳지 않습니다.
      4. It is wrong that parents can deliberately inflict pain to the extent that if inflicted on an adult it would justify prosecution.
  11. Administrator
    1. 운영자
      1. 운영자 이름을 비워 둘 수 없습니다.
      2. The name of the operator cannot be blank.
    2. Administrator
      1. Wenden Sie sich an Ihren Administrator, um die automatische Verknüpfungsfunktion zu konfigurieren.
      2. Contact your administrator to configure autolinking.
  12. manage; operate; run
    1. 운영하다
      1. 자선단체/기금/학교를 운영하다
      2. to administer a charity / fund / school
      3. 호텔/상점/어학원을 운영하다
      4. to run a hotel / store / language school
    2. Verwalten
      1. Natürlich können Sie mit unserer Lösung Ihre eigenen Karten zentral verwalten und auswerten.
      2. Of course, with our solution you can administrate your own cards and analyze them centrally.

Korean and German Phrase List – Kinderarmut

 

Based on Kinderarmut – einmal arm, immer arm and 로미오와 줄리엣이 격렬히 사랑했던 이유

 

  1. Poverty
    1. Armut
      1. In vielen afrikanischen Ländern südlich der Sahara herrscht Armut.
      2. In many African countries south of the Sahara there is poverty.
    2. 빈곤
      1. 그러나 그녀는 나라의 가장 큰 문제는 빈곤이라고 말합니다.
      2. But she says her country’s No. 1 problem is poverty.
  2. live in poverty
    1. 가난한 생활을 하다
    2. 가난하게 산다.
    3. 빈곤에 시달리고 있다.
    4. 가난 속에서 살고 있습니다
    5. 빈곤속에 산다.
    6. 극빈 속에 산다.
      1. 하지만, 아드난과 그의 가족은 현재 가난하게 살고 있습니다.
      2. However, Adnan and his family currently live in poverty.
    7. in Armut leben.
      1. Die Realität sieht so aus, daß Millionen von Menschen in unserem reichen und privilegierten Europa in Armut leben.
      2. The reality is that millions of people live in poverty in our rich and privileged Europe.
  3. As I expected
    1. 예상했던 것 만큼
    2. 예상한대로
    3. 예상했던대로
    4. 예상했듯이
      1. 그녀를 기르는 것은 예상했던 것만큼 힘들지 않아요.’
      2. Raising her is not as tough as I expected.’
    5. wie erwartet
    6. Wie Ich erwartet
      1. Der Zimmer-Service ist nicht so gut, wie ich erwartet hatte.
      2. The room service isn’t as good as I expected.
  4. According to a study
    1. 연구에 따르면
    2. 연구에 의하면
      1. 그리고 한 연구에 따르면 이렇게 뛰어난 학생들은 책을 많이 읽는다고 한다.
      2. And according to a study, the best students read a lot.
    3. Laut einer Studie
      1. Laut einer aktuellen Studie lebt jedes fünfte Kind in Deutschland in Armut.
      2. According to a recent Study one in five children in Germany lives in poverty.
  5. One in every ~
    1. ~중 한 ~
      1. 혼인 세 건 중 한 건이 이혼으로 끝난다
      2. One in every three marriages ends in divorce.
    2. Eine (s) von ~
      1. Vor allem Tabak spielt offenbar bei der Todesursache für einen von drei Rauchern eine Rolle.
      2. Tobacco especially is thought to be implicated in the cause of death of one in every three smokers.
  6. The chances that
    1. ~을 기회
    2. ~을 가능성
      1. 그 계획은 충분히 성공할 가능성이 있다
      2. There’s always the chance that the plan will work[be successful].
    3. Die Gefahr, dass
    4. die Chancen, dass
      1. Wenn seine Regierung erfolgreich ist, steigen die Chancen, dass Afrika relativ unbeschadet bleibt.
      2. If his administration succeeds, the chances that Africa will remain relatively unscathed will grow.
  7. In the future
    1. 미래에
    2. 앞으로는
      1. 그는 미래에 사람들은 불행할 거라고 생각한다.
      2. He thinks the people will be unhappy in the future
      3. 앞으로는 국민들이 국가의 힘이 될 것이다.
      4. In the future, people will be a national power.
    3. in Zukunft
    4. In der Zukunft
      1. Darüber müsste man sich in der Zukunft Gedanken machen.
      2. This should be tackled in the future.
  8. Few chances to
    1. ~을 기회가 거의 없다
      1. 가난한 가정출신의 청소년들은 악기를 배울 기회가 거의 없다.
      2. Many children from poor families have few chances to learn musical instruments.
    2. wenige Möglichkeiten … zu
      1. Leider hatte ich wenige Möglichkeiten dieses Feature zu testen. Daher bitte Feedback (wenn es funktioniert oder falls es Probleme gibt) an oswald@apachefriends.org.
      2. I have only had a few chances to test this feature, so please report if this worked for you or not: oswald@apachefriends.org.
  9. have the chance
    1. 을 기회를 가지다
      1. 그는 자신의 계획을 실행에 옮길 기회를 가졌다.  TTS 발음듣기
      2. He has another chance to put his plan into practice
    2. Die Chance haben
      1. Ich werde aber nicht immer die Chance haben, diesen Job zu machen.
      2. I won’t always have the chance to do this job.
  10. To escape from
    1. Sich befreien aus
      1. Wegen meines Erfolges hatte ich nie den Mut, meine Geschichte zu erzählen, nicht weil ich dachte, dass mit mir etwas nicht stimmt, sondern wegen der Art, wie die Welt diejenigen von uns behandelt, die sich befreien möchten.
      2. Because of my success, I never had the courage to share my story, not because I thought what I am is wrong, but because of how the world treats those of us who wish to break free.
    2. 에서 벗어나다
      1. 나는 반복되는 바쁜 일상사에서 벗어나고 싶다.
      2. want to escape from the continuous busy life.
  11. give a talk on…
    1. …에 관한 이야기를 하다.
    2. 연설하다
      1. 올해 회의 때 연설하실 거예요?
      2. Will you be giving a talk at this year’s conference?
    3. Einen Vortrag über ~ halten
    4. Eine Rede auf ~ halten
      1. Zita Köhler, die Vorsitzende des Kirchengemeinde- rats, ging nach dem Frühstück in einem Vortrag auf die biblischen Sprichwörter ein.
      2. Zita Köhler, the Chairperson of the Parish Council, agreed to give a talk on Biblical proverbs after breakfast.
  12. Evaluate
    1. 평가하다
      1. 그는 너의 작품을 매우 높이 평가하고 있다
      2. He speaks very highly of your work.
    2. Werten
    3. Bewerten
      1. Verwende die folgende Checkliste, um die Leistung des Teilnehmers zu bewerten.
      2. Use the following checklist to evaluate the Delegate’s performance.
  13. More than
    1. …보다 많이, …이상(의)
      1. 난 하루에 1,500 칼로리 이상 먹으면 살이 쪄.
      2. I gain weight if I eat more than 1500 calories a day.
    2. Mehr als
      1. Sie führen gegenwärtig mehr als 300 verschiedene Verhandlungen.
      2. At present, they are conducting over 300 different sets of negotiations
  14. Data
    1. 정보
      1. 우리는 정보를 활자화할 것이다.
      2. We will print in the data.
    2. Daten
      1. Lesen Sie die Vereinbarung über die Genehmigung zum Löschen von Daten sorgfältig durch.
      2. Read the Data Delete Authorization Agreement carefully.
  15. Over a period of ~ years
    1. über eine Zeit von
      1. Ich habe dieser Fraktion über eine Zeit von zwei Jahren angehört, d. h. der Fraktion der Nordischen Grünen Linken, die zur Europäischen Unitaristischen Linken gehört.
      2. I have sat in this group for two years – Nordic Green Left, which is part of the Confederal Group of the European United Left.
    2. ~ 년이라는 기간 동안에
    3. 년이라는 기간에
      1. 그는 10년이라는 기간 동안에 그 사업체를 세웠다.
      2. He built up the business over a period of ten years.
  16. Does not justify
    1. rechtfertigt nicht
      1. This additional burden does not justify the infringement of human rights.
      2. Diese zusätzliche Belastung rechtfertigt nicht, dass Menschenrechte verletzt werden.
    2. 정당화하지는 않는다.
      1. 하루 더 일을 쉬는 것을 도저히 정당화할 수 없다.
      2. I can’ t really justify taking another day off work.
  17. have a tendency to
    1. 성향이 있다.
    2. 을 가능성이 있다
    3. 경향이 있어요
      1. 나는 초조하면 말을 너무 많이 하는 성향이 있다.
      2. I have a tendency to talk too much when I’m nervous.
    4. neigen dazu, … (dass) / … zu
    5. haben die Tendenz…. Zu
    6. Neigung zur / zum
    7. haben den Hang dazu, … zu
    8. haben die Angewohnheit … zu
      1. Manchmal neigen wir dazu, unsere Perspektive aus den Augen zu verlieren.
      2. Sometimes we have a tendency to lose perspective.
  18. Young girls
    1. 어린 소녀들
      1. 어린 소녀들은 흔히 자신의 친구들에게 말하기를 좋아한다.
      2. Young girls are commonly communicative to their friends.
    2. Mädchen
  19. Young boys
    1. 남자 아이들
    2. 어린 소년들
      1. 어린 소년들은 걸을 수 있게 되자마자 말을 타는 법을 배웠다.
      2. Young boys were taught to ride as soon as they could walk.
    3. Jungen

      1. Specific attention should be paid to the younger and older members of the population.
      2. Jungen und älteren Bürgern sollte dabei besondere Aufmerksamkeit gelten.
  20. Thus, therefore
    1. Demnach
      1. Es ist demnach angebracht, diesen Toleranzwert dauerhaft beizubehalten.
      2. It is therefore appropriate to retain this tolerance on a permanent basis.
    2. 그러므로
    3. 그래서
      1. 그러므로 그들은 대부분의 사람보다 적은 수의 적을 가지고 있다.
      2. Therefore, they have fewer enemies than most people.
  21. It often applies to
    1. Das betrifft oft ..
      1. Das betrifft Millionen von ganz normalen Arbeitnehmern im Vereinigten Königreich.
      2. That applies to millions of ordinary individuals working in companies up and down the United Kingdom.
    2. 에게 적용되는
      1. 그리고 모든 사람들에게 적용되는 긍정적인 노래이기도 하고요.
      2. And it is a very positive song that applies to all of us.
  22. Single parent
    1. 한 부모[혼자 아이를 키우는 부모]
      1. 혼자 사는 부모들은 두 사람 몫의 일을 과감하게 해 나간다.
      2. Single parents cope heroically in doing the job of two people.
    2. Alleinerziehende Eltern
      1. I was an alcoholic, unemployed single parent.
      2. Ich war eine alkoholkranke, arbeitslose, alleinerziehende Mutter.
  23. One third, one in three
    1. Jeder dritte
      1. We know that only one in three employees has access to training.
      2. Möglichkeit einer Ausbildung hat.

 

Korean | German Vocab and Phrase List

  1. original work; original
    1. 원작
      1. 그 영화는 원작에 충실하다
      2. The film is true[faithful] to the original (work).
    2. Das Originalwerk
    3. Die ursprüngliche Arbeit
      1. Deine ursprüngliche Arbeit muss außergewöhnlich sein.
      2. Your original work must be extraordinary.
  2. Couple
    1. 연인
      1. 이 영화는 불운한 연인들의 사랑을 다룬 것입니다.
      2. his movie is about love of star-crossed lovers.
    2. Das Pärchen
      1. Wir sehen ja echt aus wie ein richtiges Pärchen.
      2. We actually look like a real couple.
  3. drastic, exquisite
    1. 격렬한
      1. 그는 격렬한 감정을 억눌렀다.
      2. He controlled himself the violence of his feelings.
  4. opposite; contrary
    1. 반대
      1. 그 편지를 읽고 그는 그 계획에 반대하기로 결정했다.
      2. The letter determined him against the plan.
    2. Gegen sein, widersprechen
      1. Das ist gegen die Bestimmungen, wie Sie wissen.
      2. It is against regulations, you know.
  5. ①be bumped into; be run against ②be run against
    1. 부딪히다
      1. 두 사람이 서로 부딪힌다
      2. Two people are walking into each other.
      3. 저는 심각한 문제에 부딪혀 있습니다.
      4. I am facing a serious problem.
  6. On this; Over this
    1. 이에 대한
      1. 이에 대한 조치를 취해야 한다.
      2. Something must be done about it.
  7. Excessive
    1. 심하다
      1. 너 좀 과장이 심하다.
      2. I think you are over-exaggerating just a little bit.
    2. Übermäßig
      1. übermäßige Bewegung des Patienten, Venenpulsationen, Störungen durch elektrochirurgische Geräte
      2. Excessive patient movement, venous pulsations, electrosurgical interference
  8. effect; efficacy
    1. 효과
      1. 처음 치료는 별 효과가 없었다.
      2. The first treatment didn’t do much.
    2. Wirkung auf
      1. Doch, er hatte diese Wirkung auf Menschen.+
      2. He had that effect on people.
  9. Co-Workers
    1. 동료
      1. 그는 동료 사이에 인기가 있었다
      2. He enjoyed popularity with[among] his fellow workers.
    2. Mitarbeiter, Kollege
      1. Mein Kollege Mason Bridge wird vermisst.
      2. My coworker Mason Bridge is missing.
  10. Pair
    1. 쌍의
      1. 이는 다른 값 쌍의 경우에도 유사합니다.
      2. This works similarly for other value pairs.
  11. Aimed at; intended for; for;
    1. ~을 대상으로
      1. 우리 학교에서는 4세 아동들을 대상으로 탁아 프로그램을 운영한다.
      2. Our school runs a day-care program for four-year-olds.
    2. Etwas richtet sich an ~
      1. Die Ausstellung richtet sich an ein allgemeines Publikum und stellt auf verständliche und interaktive Weise die Schlüsselkonzepte und Mechanismen der Evolution des Lebens vor.
      2. Aimed at the general public, it provides a comprehensive and interactive illustration of the key concepts and mechanisms underlying the evolution of living beings.
  12. Survey
    1. 설문조사
      1. 여러분들 설문조사 하셨죠?
      2. You took a survey, right?
    2. Die Umfrage
      1. Die Berichte der Umfrage werden den Managern vorgelegt.
      2. Survey reports are shared with managers.
  13. Someone else
    1. 다른 누군가가
      1. 다른 누군가가 말하고 있는데 말을 가로막는 것은 실례다.
      2. It is rude to interrupt when someone else is speaking.
    2. Jemand anderes
      1. Wir sollten gehen, bevor noch jemand anderes getötet wird.
      2. We should go before someone else gets killed.
  14. Free will
    1. 자유 의지
      1. 그녀의 자유 의지로 결정되었다.
      2. The decision was made of her free will.
    2. Freier Wille
      1. Das heißt freier Wille, deine Wahl.
      2. That means free will, your choice.
  15. The second day, the following day
    1. 이튿날
      1. 이튿날 아침 큰딸이 일하러 왔다.
      2. The next morning my older daughter arrived for work.
    2. Am folgenden Tag, am nächsten Tag
      1. Sie rief mich am nächsten Tag an.
      2. She called me the following day.
  16. To be related to, to have connection with
    1. 연관이 있
      1. 다 연관이 있는 거 같고요.
      2. They are all connected.
    2. Zusammenhängen
      1. Julie, der Mord, das hängt alles zusammen.
      2. Julie, the murder… It’s all connected.
  17. Satisfy curiosity
    1. 궁금증이  풀리다
      1. “궁금증이 모두 풀렸다!”
      2. “I’ve got all my curiosities solved!”
    2. Neugier befriedigen
      1. Bestraf mich nicht, weil ich meine Neugier befriedigen musste.
      2. Stop punishing me because I had to satisfy my curiosity.
  18. Romeo and Juliet
    1. Romeo und Julia
      1. Was ist das, Romeo und Julia?
      2. What is that, romeo and juliet?
    2. 로미오와 줄리엣
      1. ‘로미오와 줄리엣’ 명작이죠.
      2. “Romeo and Juliet” is a classic.
  19. They were in love
    1. Sie waren verliebt..
      1. Sie erzählte ihm nicht, dass sie verliebt waren.
      2. She omitted the fact that they were in love.
  20. Inspired by
    1. Inspiriert durch
    2. Inspiriert von
      1. Well, inspired by the gospel, certainly.
      2. inspiriert durch das Evangelium, sicher.
    3. 영감을 받았다
      1. 이 특별판 운동화는 우주 비행사에 의해 영감을 받았다.
      2. The special edition sneakers were inspired by astronauts.
  21. Each member of the family
    1. Jedes Mitglied der Familie
      1. Jedes Mitglied der Familie trägt bei und das schließt dich ein.
      2. Every member of the family contributes, and that includes you.
    2. 각각의 가족
      1. 선물 대신, 각각의 가족 구성원들이 모든 사람이 함께 할 수 있는 활동을 선택하게 됩니다.
      2. Instead of gifts, each member of the family gets to choose an activity that everyone will do together.
  22. Enemy
    1. Der Feind
      1. Es stellte sich heraus, dass du der Feind bist.
      2. Turns out you’re the enemy.
    2. 원수
      1. 약간 원수 같은 느낌
      2. is kind of like an enemy.
  23. bring something to an end
    1. …을 끝내다
      1. 국립과학원 토론회는 이같은 연구 결과가 그럴 기능성이 높다고 결론을 내렸습니다
      2. The National Academy of Sciences’ panel brings to an end the studies’ findings are plausible.
    2. Beenden
      1. Drücken Sie , um die Installation zu beenden.
      2. Press to end the installation process
  24. On the contrary
    1. 오히려
      1. 너는 오히려 가지 않는 편이 나을 것이다
      2. You had better not go there.
    2. Im Gegenteil
      1. Das ist unsere Stärke, denn Europa lebt im Gegenteil von seiner Vielfalt
      2. Therein lies our strength because, on the contrary, Europe thrives on its diversity.
  25. Someone named something A
    1. A는 B에게 “—”이라는 이름을 붙였다
      1. 과학자들은 이 여섯 살짜리의 암컷 매머드에게 ‘류바’라는 이름을 붙였고 현재는 러시아 과학원 동물학 연구소의 특별 냉장고에 보관하고 있다
      2. Scientists have named the six-year-old female ‘Lyuba’ and are currently keeping her in a special refrigerator at the Russian Academy of Science’s Zoological Institute.
    2. A benennt B “”
    3. A  nennt B “”
      1. Sie nannten mich nach dem Flugzeug.
      2. They named me after the plane.
  26. The tendency to ; tend to
    1. 는 경향이
      1. 이것은 남학생들이 여학생들보다 잘 하는 경향이 있는 두 영역이다
      2. These are two areas where boys tend to be better than girls.
    2. neigen dazu …
    3. Haben die Tendenz …
    4. Tendieren dazu …
      1. Meine Hypothesen neigen dazu, diesen Effekt auszulösen.
      2. My hypotheses tend to have that effect.
  27. To take a class; a course; to participate in a module
    1. 수업을 수강하다
    2. 개론을 수강하다
      1. 컴퓨터 강좌를 수강하느라고 바빴어.
      2. I was busy with my computer course.
    3. Einen Kurs belegen
    4. An einem Kurs teilnehmen
      1. Er würde an einem Kurs teilnehmen und ich würde dafür auf die Studiengebühren fürs Institut verzichten.
      2. He would take a class and, in return, I would waive his tuition at the Institute for as long as he attends.
  28. the day before
    1. Am Tag zuvor
      1. An manchen Tagen fühle ich mich anders als am Tag zuvor.
      2. Some days I feel different than the day before.
    2. 전날.
      1. 그 전날은 날씨가 좋았다.
      2. It had been fine the day before.
  29. Alternate between
    1. wechseln zwischen
      1. Sie können zwischen diesen Einzelschritt-Typen wechseln.
      2. You can alternate between these types of stepping.
    2. (번갈아 가며) A했다 B 했다하다

KOR | GER Ausdrücke – Heutige Zusammenfassung – 우리에겐 ‘수다’가 필요해!

  1. ①clamor; make a noise ②speak loudly ③spread ④insist
    1. 떠들다
      1. 계속 떠들다 언젠가 지쳐서 잠들겠지.
      2. We will fall asleep sometime after talking.
    2. Klappern
      1. Vielleicht hört das Klappern dann auf.
      2. Maybe that will stop the chattering.
  2. chatter , noise
    1. 수다
      1. 그들의 수다 때문에 공부에 정신을 집중할 수 없다.
      2. Their chatter distracts me from studying.
  3. Go to your room
    1. geh auf dein Zimmer.
      1. Ich würde gern mit dir auf dein Zimmer gehen.
      2. I’d like to go to your room.
      3. Geh jetzt auf dein Zimmer und lerne. Penny, wehe, wenn du weiter auf ihr pubertäres Geschwätz hörst
      4. Tracy, I want you to go to your room and study… and, Penny, don’t you be listening… to every bit of nonsense that my daughter tells you.
    2. 방으로 가다
      1. 만약 너희 아빠께서 집에서 담배를 피우시면, 네 방으로 가.
      2. If your dad is smoking in the house, go to your room.
  4. Adults, elders
    1. 어른들
      1. 어른들은 오랫동안 화를 안 푸는 경향이 있어요.
      2. Adults tend to stay angry a long time.
    2. Die Erwachsene
      1. Ich, als die Erwachsene, hätte wissen…
      2. I’m the adult, I’m the one that should’ve known…
  5. Someone’s
    1. Jemandes
      1. Ich könnte irgendwann auf jemandes Hochzeit gehen müssen.
      2. I’m might have to go to somebody else’s wedding.
    2. 누군가의
    3. 누구의
      1. 지금 당장 귀를 기울이고 누군가의 절친이 되자.
      2. Let us listen and become someone’s best friend now.
  6. ①disregard; neglect ②disregard; neglect
    1. 무시하다
      1. 이 사람이 교통신호를 무시했습니다
      2. his man ignored the traffic signal.
    2. Ignorieren
      1. I can’t ignore what happened.
      2. Ich kann nicht ignorieren, was passiert ist.
  7. No use; no point; pointless; counts for nothing; unimportant
    1. 아무 쓸모가 없다
      1. 그의 학문은 아무 쓸모가 없다.
      2. His learning does no good.
    2. Sinnlos
      1. Er glaubt, dass seine Arbeit sinnlos ist.
      2. He thinks his job is pointless.
  8. I am tired of
    1. 에 싫증이 난다
      1. 나는 오트밀에 싫증이 난다.
      2. I am tired of oatmeal.
    2. Ich habe es satt
      1. Ich habe es satt, mich immer nur zu beschweren und nie was zu tun.
      2. I am tired of just complaining and never doing anything.
  9. I hate it when
    1. 게 정말 싫어
    2. 은 질색이다
      1. 나는 사람들이 우는 것은 질색이다.
      2. I hate it when people cry.
    3. Ich hasse es, wenn
      1. Ich hasse es, wenn Mami und Papi streiten.
      2. I hate it when mommy and daddy fight.
  10. Professor
    1. 교수인
      1. 어느 날, 앨봄은 그의 옛 교수인 슈워츠를 텔레비전에서 보았다.
      2. One day, Albom saw his old professor, Schwartz, on television.
    2. Professor
      1. Sie hatten wohl Angst, ich wäre Professor Sprout.
      2. You probably feared I was Professor Sprout.
  11. New employees
    1. 신입사원들
      1. 신입 사원들이 일을 아주 열심히 하는 것 같군요.
      2. Looks like the new employees are hard workers.
    2. Neue Mitarbeiter
      1. Ihr Unternehmen stellt neue Mitarbeiter ein.
      2. New employees are being hired by your enterprise.
  12. Observe
    1. 관찰하다
      1. 그는 영화 제작 과정을 관찰할 수 있었다.
      2. He was able to observe the process of film production.
    2. Beobachten
      1. Beobachten Sie Daniel Hendrickx, wenn wir an der Reihe sind.
      2. Don’t miss a thing, and watch Daniel Hendrickx’s face closely.
  13. both sides; both parties
    1. 양쪽
      1. 양쪽 모두 가지고 싶지 않다
      2. I want neither (of them). or I don’t want either (of them).
    2. beiden Seiten
      1. Eines, mit dem beide Seiten hätten leben können.
      2. One that both sides could live with.
  14. record; results ②grade; record
    1. 성적
      1. 대학 시절 학교 성적은 어땠습니까?
      2. How were your grades in college?
    2. Die Noten
      1. Du hast ja mitgearbeitet und hattest gute Noten, sag mal.
      2. You worked well and got good grades.
  15. remarkable; outstanding
    1. 뛰어나다
      1. 그의 작품은 단연 뛰어나다.
      2. His work is in a class by itself.
    2. Hervorragend
      1. Hier haben wir ein hervorragendes Beispiel für die Ausgewogenheit.
      2. This is an outstanding example of balance.
  16. faithfully; sincerely
    1. 성실히
      1. 앞으로 성실히 살겠습니다
      2. will live an honest life from now on.
    2. Aufrichtig, herzlich
      1. Wir nehmen an, dass das Land seine Entscheidung aufrichtig bedauert.
      2. We assume that it sincerely regrets its decision
  17. result; outcome
    1. 결과
      1. 더 나은 결과를 얻을 필요가 있어요.
      2. We need to generate better results.
    2. Das Ergebnis
      1. Ich erwarte hier bei aller Behutsamkeit ein schnelles und gutes Ergebnis.
      2. I am tentatively expecting a fast and satisfactory outcome.
  18. At first
    1. 처음엔
      1. 요리도 처음엔 어렵지.
      2. Cooking is hard at first.
    2. Zuerst, am Anfang
      1. Wir waren zuerst etwas unschlüssig, auch wenn wir das bedauern.
      2. At first we were somewhat irresolute and we regret that now.
  19. Definitely, certainly
    1. 분명히
      1. 이것은 분명히 그것과 다릅니다.
      2. This is certainly different from that.
    2. Sicherlich, gewiss
      1. Hier ist es sicher wichtig, dass das Weiterlaufen überprüft wird.
      2. It is certainly important to monitor what happens here.
  20. Gradually; more and more
    1. 점점
      1. 그때 이후 그것은 점점 더 유명하게 되었다.
      2. Since then it has become more and more popular.
    2. immer mehr
      1. Ohne eine Änderung der Rechtsvorschriften werden immer mehr ungeprüfte Fahrzeuge auf den europäischen Markt kommen.
      2. Without a change in legislation, more and more untested cars will enter the European market.
  21. Produce results ( good)
    1. 결과를 내다
      1. 이것은 프로그램이 오작동하거나 틀린 결과를 내는 원인이 된다.
      2. This causes a program to malfunction or to produce incorrect results.
    2. Früchte tragen,  zu Ergebnissen führen
      1. Bleibt zu hoffen, dass die Konferenz in Madrid zu Ergebnissen führen wird, die unseren Erwartungen entsprechen.
      2. Let us hope, then, that the Madrid Conference will produce results that come up to our expectations.
  22. Then; and then
    1. 그랬더니
      1. 그랬더니 보험회사에서 절대로 안 된다는 거예요.
      2. But the insurance company said absolutely not.
  23. ①appearance; look ②appearance; look ③trace; mark
    1. 모습
      1. 이 근처는 옛날 모습을 간직하고 있다
      2. This neighborhood looks just as it did in the old days.
    2. Das Aussehen
      1. Durch den Neuaufbau der Kurve kann sich ihr Aussehen ändern.
      2. Rebuilding the curve can change its appearance.
  24. gather around
    1. Sich versammeln
      1. Arizona State Studenten, versammelt euch.
      2. Arizona State students, gather around.
    2. 모여서
      1. 해질녘이면 우리는 모여서 기도를 한다.
      2. At the close of day, we all gather up to pray.
  25. take a break
    1. Pause machen
      1. In zwei Minuten kann ich Pause machen.
      2. I can take a break in about two minutes.
    2. 쉬다
      1. 들어가서 잠시 쉬다 오겠습니다.
      2. I’ll get in and rest some.
  26. ①talk ②have a talk
    1. 이야기를 나누다
      1. 그와 이야기를 나누다 보니 긴장이 풀렸다
      2. My tension melted away as I talked with him.
    2. Sich mal unterhalten
      1. Es ist schön, wenn man sich mal mit jemandem unterhalten kann.
      2. It’s lovely to find someone I can actually chat to.
  27. Conduct experiments
    1. 실험을 하다
      1. 어제 나는 물리시간에 실험을 했다.
      2. Yesterday I had class in the physics laboratory.
    2. Ein Experiment durchführen
      1. Vielleicht könnten wir ein Experiment durchführen, um es herauszufinden.
      2. Maybe we can do an experiment to find out.
  28. Upon that
    1. 그러자
      1. 그러자 아주 커다란 소음이 들렸어요.
      2. Then I heard a very loud noise.
    2. Auf dieser Grundlage
      1. Auf dieser Grundlage haben wir sie verheiratet, und die Ehe ist einwandfrei.
      2. Based upon that, we gave him a bride, and it was a flawless wedding.
  29. While V + ing
    1. 는 도중에
      1. 그는 대화 도중에 몇 차례 끼어 들었다.
      2. He interjected several times during the conversation.
  30. Creative
    1. 창의적
      1. 창의적인 사람들은 시류에 거슬리게 생각한다.
      2. Creative people sometimes think against the stream.
    2. Kreativ
      1. Die Kreativen hatten wirklich zum ersten Mal das Sagen.
      2. Creative people really had their say for the first time.
  31. To come up with ideas
    1. 아이디어가 샘솟아요
      1. 끊임없이 아이디어가 샘솟아요.
      2. he comes up with ideas endlessly.
    2. Auf Idee kommen, ideen einbringen,
      1. Man kommt auf Ideen, an die man sonst nicht gedacht hätte.
      2. You can come up with ideas that you wouldn’t have thought of otherwise.
  32. Solve a problem
    1. 문제를 풀다
    2. 문제를 해결하다
      1. 사랑이란 문제를 해결하기 위해 머리를 맞대는 것이다.
      2. Love is putting your heads together to solve a problem.
    3. Ein Problem lösen
      1. Nun, ich nehme an, dass Sie bereit sind, Ihre Arbeit wieder aufzunehmen, mir zu helfen ein Problem zu lösen.
      2. Well, I assume you’re ready to resume your work, help me solve a problem.
  33. I hope it ….
    1. 이랬으면 좋겠다.
      1. 오늘 아침 화창하고 좋네. 하루 종일 이랬으면 좋겠다.
      2. It’s nice and sunny this morning, I hope it stays like this all day.
    2. Ich hoffe
      1. Ich hoffe, Sie werden die unseren unterstützen.
      2. I hope you will support ours.
  34. During office hours
    1. während der Bürozeiten
      1. – Komm bitte während der Bürozeiten.
      2. – Please come during office hours.
    2. 근무 시간에
      1. 근무 시간에 이 번호로 전화하세요.
      2. Phone us on this number during office hours.
  35. To reference something
    1. Etwas im Bezug nehmen, referenzieren
      1. Beachten Sie die Objekte, die als Ziele referenziert sind.
      2. Note the objects that are referenced as targets
    2. 참조하다
      1. 쿼리 작업을 할 때 여기 포함된 표를 참조하십시오
      2. Use the tables included as a reference when working with queries.
error: Content is protected !!