주의능력
2025년 11월 12일 11:29분
package com.jesusbornd.genesis;
/*
* Genesis_18_Chapter_Lv1_V2.java
* [KO] 새 스타일: 창세기 18장 — 대표 4절(KRV+ESV) + 요약 + 적용
* [EN] New style: Genesis 18 — 4 Key Verses (KRV+ESV) + Summary + Practice
*
* Variation (Java, V2):
* 1) EnumMap<Label,String>로 i18n 라벨 관리
* 2) record Verse + Consumer<Verse> 프린터 주입(작은 전략)
* 3) 콘솔 하이라이트 함수로 핵심 문구 강조 (“여호와께 어려울 일이 있겠느냐 / Is anything too hard for the LORD?”)
*/
import java.util.*;
import java.util.function.Consumer;
public class Genesis_18_Chapter_Lv1_V2 {
// ---- i18n labels ----
enum Label { TITLE_KO, TITLE_EN, SUMMARY, PRACTICE }
private static final EnumMap<Label, String> LBL = new EnumMap<>(Label.class);
static {
LBL.put(Label.TITLE_KO, "[창세기 18장 | KRV & ESV]");
LBL.put(Label.TITLE_EN, "[Genesis 18 | KRV & ESV]");
LBL.put(Label.SUMMARY, "[요약 / Summary]");
LBL.put(Label.PRACTICE, "[적용 / Practice]");
}
// ---- Domain ----
public record Verse(String ref, String krv, String esv) {}
// 대표 4절: 18:1–2(방문) · 18:10(아들 약속) · 18:14(여호와께 어려울 일) · 18:23,32(중보)
private static final List<Verse> VERSES = List.of(
new Verse(
"창세기 18:1–2 / Genesis 18:1–2",
"여호와께서 마므레 상수리 수풀에서 아브라함에게 나타나시니… 아브라함이 눈을 들어 본즉 세 사람이 서 있는지라",
"The LORD appeared to him by the oaks of Mamre… He lifted up his eyes and looked, and behold, three men were standing in front of him."
),
new Verse(
"창세기 18:10 / Genesis 18:10",
"내년 이맘때에 네 아내 사라에게 아들이 있으리라",
"I will surely return to you about this time next year, and Sarah your wife shall have a son."
),
new Verse(
"창세기 18:14 / Genesis 18:14",
"여호와께 어려울 일이 있겠느냐",
"Is anything too hard for the LORD?"
),
new Verse(
"창세기 18:23, 32 / Genesis 18:23, 32",
"아브라함이 가까이 나아가 이르되… 의인을 악인과 함께 멸하려 하시나이까… (마침내) 열 사람으로 말미암아 멸하지 아니하시리라",
"Then Abraham drew near and said… Will you indeed sweep away the righteous with the wicked?… (Finally) For the sake of ten I will not destroy it."
)
);
// ---- Summary & Practice ----
private static final String SUMMARY_KO =
"여호와의 방문으로 약속이 갱신되고(18:1–2,10), “여호와께 어려울 일”이 없음을 선포하시며(18:14), "
+ "아브라함은 소돔을 위해 대담히 중보한다(18:23,32).";
private static final String SUMMARY_EN =
"With the LORD’s visitation the promise is renewed (18:1–2,10), He declares nothing is too hard for Him (18:14), "
+ "and Abraham boldly intercedes for Sodom (18:23,32).";
private static final String PRACTICE_KO =
"불가능해 보이는 한 가지를 하나님께 맡겨 고백하고(18:14), 오늘 누군가를 위해 1분 중보하자.";
private static final String PRACTICE_EN =
"Entrust one ‘impossible’ thing to God (18:14) and intercede one minute for someone today.";
// ---- small console highlighter ----
private static String hi(String s) {
return s
.replace("여호와께 어려울 일이 있겠느냐", "[여호와께 어려울 일이 있겠느냐]")
.replace("Is anything too hard for the LORD?", "[Is anything too hard for the LORD?]");
}
public static void main(String[] args) {
final String nl = System.lineSeparator();
StringBuilder out = new StringBuilder();
// Title
out.append(LBL.get(Label.TITLE_KO)).append(nl);
out.append(LBL.get(Label.TITLE_EN)).append(nl);
out.append("Lv1: Visitation - Promise of a Son - Nothing Too Hard - Bold Intercession").append(nl).append(nl);
// Verse printer strategy
Consumer<Verse> printVerse = v -> {
out.append(v.ref()).append(nl);
out.append("KRV: ").append(hi(v.krv())).append(nl);
out.append("ESV: ").append(hi(v.esv())).append(nl).append(nl);
};
VERSES.forEach(printVerse);
// Summary
out.append(LBL.get(Label.SUMMARY)).append(nl);
out.append("KO: ").append(SUMMARY_KO).append(nl);
out.append("EN: ").append(SUMMARY_EN).append(nl).append(nl);
// Practice
out.append(LBL.get(Label.PRACTICE)).append(nl);
out.append("KO: ").append(PRACTICE_KO).append(nl);
out.append("EN: ").append(PRACTICE_EN).append(nl);
System.out.print(out.toString());
}
}
#### Genesis_18_Chapter_Lv1_V2.py
#### [KO] 새 스타일: yield from(합성 제너레이터) + 작은 하이라이터 + 섹션 함수 분할
#### [EN] New style: composed generators (yield from) + tiny highlighter + sectioned functions
from dataclasses import dataclass
from typing import Iterable, List
def hi(s: str) -> str:
return (s
.replace("여호와께 어려울 일이 있겠느냐", "[여호와께 어려울 일이 있겠느냐]")
.replace("Is anything too hard for the LORD?", "[Is anything too hard for the LORD?]"))
@dataclass(frozen=True)
class Verse:
ref: str
krv: str
esv: str
# 18:1–2, 18:10, 18:14, 18:23/32
VERSES: List[Verse] = [
Verse("창세기 18:1–2 / Genesis 18:1–2",
"여호와께서 마므레 상수리 수풀에서 아브라함에게 나타나심… 세 사람이 서 있더라",
"The LORD appeared by the oaks of Mamre… three men were standing before him."),
Verse("창세기 18:10 / Genesis 18:10",
"내년 이맘때에 사라에게 아들이 있으리라",
"About this time next year… Sarah your wife shall have a son."),
Verse("창세기 18:14 / Genesis 18:14",
"여호와께 어려울 일이 있겠느냐",
"Is anything too hard for the LORD?"),
Verse("창세기 18:23, 32 / Genesis 18:23, 32",
"아브라함의 담대한 중보 – 의인을 악인과 함께 멸하시나이까… 열 사람으로 말미암아 멸하지 아니하시리라",
"Abraham’s bold intercession – Will you sweep away the righteous with the wicked?… For the sake of ten I will not destroy it."),
]
SUMMARY_KO = ("여호와의 방문으로 약속이 새로워지고(18:1–2,10), ‘여호와께 어려울 일’이 없음을 밝히시며(18:14), "
"아브라함은 소돔을 위해 담대히 중보한다(18:23,32).")
SUMMARY_EN = ("The LORD’s visitation renews the promise (18:1–2,10), He declares nothing is too hard for Him (18:14), "
"and Abraham boldly intercedes for Sodom (18:23,32).")
PRACTICE_KO = "불가능처럼 보이는 일을 맡겨 고백하고, 누군가를 위해 1분 중보하자."
PRACTICE_EN = "Confess and entrust the ‘impossible,’ and intercede one minute for someone."
def section_title() -> Iterable[str]:
yield "[창세기 18장 | KRV & ESV]"
yield "[Genesis 18 | KRV & ESV]"
yield "Lv1: Visitation - Promise of a Son - Nothing Too Hard - Bold Intercession"
yield ""
def section_verses() -> Iterable[str]:
for v in VERSES:
yield v.ref
yield "KRV: " + hi(v.krv)
yield "ESV: " + hi(v.esv)
yield ""
def section_summary() -> Iterable[str]:
yield "[요약 / Summary]"
yield "KO: " + SUMMARY_KO
yield "EN: " + SUMMARY_EN
yield ""
def section_practice() -> Iterable[str]:
yield "[적용 / Practice]"
yield "KO: " + PRACTICE_KO
yield "EN: " + PRACTICE_EN
def main() -> None:
for section in (section_title, section_verses, section_summary, section_practice):
yield from section()
if __name__ == "__main__":
for line in main():
print(line)
← 목록으로
Comments
“여호와께 어려울 일이 있겠느냐” — 이 한 구절이 18장의 심장입니다. 사람의 한계 앞에서도, 시간이 지나고 현실이 무너져도, 그분의 말씀은 여전히 ‘현재형’이라는 걸 보여주네요. 아브라함의 중보처럼, 오늘도 누군가를 위해 믿음으로 나아가는 하루가 되기를 축복합니다. 🙏