One-card readings: no 'cards together' section
With a single card the synthesis is about how its message shows in practice (prompt rule and schema description), and the section is titled 'A gyakorlatban' instead of 'A lapok együtt'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -264,7 +264,7 @@ pub fn tarot_schema() -> Value {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"synthesis": {"type": "string", "description": "How the cards read together, 1-3 paragraphs separated by a blank line"},
|
"synthesis": {"type": "string", "description": "How the cards read together (a single card: how its message shows in practice), 1-3 paragraphs separated by a blank line"},
|
||||||
"advice": {"type": "string", "description": "A closing, encouraging paragraph with one or two concrete steps"}
|
"advice": {"type": "string", "description": "A closing, encouraging paragraph with one or two concrete steps"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -281,6 +281,13 @@ fn length(cards: usize) -> (usize, usize) {
|
|||||||
|
|
||||||
fn hungarian_system(cards: usize) -> String {
|
fn hungarian_system(cards: usize) -> String {
|
||||||
let (min, max) = length(cards);
|
let (min, max) = length(cards);
|
||||||
|
let together = if cards == 1 {
|
||||||
|
"- Egyetlen lap van, nincs mit egymáshoz mérni: a „synthesis” mezőben arról írj, hogyan jelenhet meg a lap \
|
||||||
|
üzenete a gyakorlatban, az olvasó napjában vagy a kérdése ügyében (helyzetek, érzések, amelyekre figyelhet)."
|
||||||
|
} else {
|
||||||
|
"- A lapok együtt mesélnek: mutasd meg, hogyan kapcsolódnak egymáshoz (ismétlődő elemek, színek, nagy árkánumok \
|
||||||
|
súlya, az álló és fordított lapok aránya)."
|
||||||
|
};
|
||||||
format!(
|
format!(
|
||||||
"Tapasztalt, empatikus, lélektani szemléletű tarot-olvasó vagy, aki az asztrológiát is ismeri. A Sorsfonalak \
|
"Tapasztalt, empatikus, lélektani szemléletű tarot-olvasó vagy, aki az asztrológiát is ismeri. A Sorsfonalak \
|
||||||
alkalmazás számára személyes kártyajóslást írsz egy kirakásról, amelyet az olvasó kérdésére húzott.
|
alkalmazás számára személyes kártyajóslást írsz egy kirakásról, amelyet az olvasó kérdésére húzott.
|
||||||
@@ -292,8 +299,7 @@ Szabályok:
|
|||||||
kiindulópont: a saját tudásod a lapok hagyományos szimbolikájáról (Rider–Waite) kiegészítheti, de ne mondjon neki ellent.
|
kiindulópont: a saját tudásod a lapok hagyományos szimbolikájáról (Rider–Waite) kiegészítheti, de ne mondjon neki ellent.
|
||||||
- Minden lapot a pozíciója fényében olvass, és mindig a kérdésre vonatkoztasd. Ha nincs kérdés, az olvasó jelenlegi \
|
- Minden lapot a pozíciója fényében olvass, és mindig a kérdésre vonatkoztasd. Ha nincs kérdés, az olvasó jelenlegi \
|
||||||
életszakaszáról szólj általánosan.
|
életszakaszáról szólj általánosan.
|
||||||
- A lapok együtt mesélnek: mutasd meg, hogyan kapcsolódnak egymáshoz (ismétlődő elemek, színek, nagy árkánumok \
|
{together}
|
||||||
súlya, az álló és fordított lapok aránya).
|
|
||||||
- Az olvasó Napját, Holdját és Aszcendensét (ha meg van adva) egy-két helyen, finoman kapcsold a lapokhoz, például a \
|
- Az olvasó Napját, Holdját és Aszcendensét (ha meg van adva) egy-két helyen, finoman kapcsold a lapokhoz, például a \
|
||||||
lapok elemén vagy asztrológiai megfelelésén keresztül; ne írj belőle horoszkópot.
|
lapok elemén vagy asztrológiai megfelelésén keresztül; ne írj belőle horoszkópot.
|
||||||
- Közvetlenül az olvasóhoz szólj, tegező formában (egyes szám második személyben, „te”).
|
- Közvetlenül az olvasóhoz szólj, tegező formában (egyes szám második személyben, „te”).
|
||||||
@@ -313,6 +319,13 @@ elem legyen, ahány lap van, a pozíciók sorrendjében.{HUNGARIAN_TERMS}"
|
|||||||
|
|
||||||
fn english_system(language: &str, cards: usize) -> String {
|
fn english_system(language: &str, cards: usize) -> String {
|
||||||
let (min, max) = length(cards);
|
let (min, max) = length(cards);
|
||||||
|
let together = if cards == 1 {
|
||||||
|
"- There is a single card, nothing to weigh it against: in \"synthesis\" write how its message may show in \
|
||||||
|
practice, in the reader's day or in the matter of the question (situations and feelings to watch for)."
|
||||||
|
} else {
|
||||||
|
"- Show how the cards tell one story together (recurring elements and suits, the weight of the major arcana, \
|
||||||
|
upright versus reversed cards)."
|
||||||
|
};
|
||||||
format!(
|
format!(
|
||||||
"You are an experienced, empathetic tarot reader with a psychological approach who also knows astrology. You \
|
"You are an experienced, empathetic tarot reader with a psychological approach who also knows astrology. You \
|
||||||
write a personal tarot reading for the Sorsfonalak app about a spread the reader drew for their question.
|
write a personal tarot reading for the Sorsfonalak app about a spread the reader drew for their question.
|
||||||
@@ -324,8 +337,7 @@ Rules:
|
|||||||
starting point; your knowledge of the traditional (Rider-Waite) symbolism may add to them but must not contradict them.
|
starting point; your knowledge of the traditional (Rider-Waite) symbolism may add to them but must not contradict them.
|
||||||
- Read each card in the light of its position and always relate it to the question. Without a question, speak about \
|
- Read each card in the light of its position and always relate it to the question. Without a question, speak about \
|
||||||
the reader's present phase of life.
|
the reader's present phase of life.
|
||||||
- Show how the cards tell one story together (recurring elements and suits, the weight of the major arcana, upright \
|
{together}
|
||||||
versus reversed cards).
|
|
||||||
- Link the reader's Sun, Moon and Ascendant (when given) to the cards once or twice, gently, e.g. through the cards' \
|
- Link the reader's Sun, Moon and Ascendant (when given) to the cards once or twice, gently, e.g. through the cards' \
|
||||||
elements or astrological correspondences; do not write a horoscope.
|
elements or astrological correspondences; do not write a horoscope.
|
||||||
- Address the reader directly, in the second person.
|
- Address the reader directly, in the second person.
|
||||||
@@ -465,6 +477,13 @@ mod tests {
|
|||||||
assert!(Reading::parse(&json!({"spread": "daily", "cards": [{"card": "nincs"}]})).is_err());
|
assert!(Reading::parse(&json!({"spread": "daily", "cards": [{"card": "nincs"}]})).is_err());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn one_card_has_no_reading_together() {
|
||||||
|
assert!(hungarian_system(1).contains("Egyetlen lap van") && !hungarian_system(1).contains("együtt mesélnek"));
|
||||||
|
assert!(hungarian_system(3).contains("együtt mesélnek"));
|
||||||
|
assert!(english_system("en", 1).contains("single card") && !english_system("en", 1).contains("one story"));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn a_one_card_answer_is_valid() {
|
fn a_one_card_answer_is_valid() {
|
||||||
let text = "Egy bekezdés a lapról.";
|
let text = "Egy bekezdés a lapról.";
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ export function TarotResult({
|
|||||||
question: string | null;
|
question: string | null;
|
||||||
content: TarotContent;
|
content: TarotContent;
|
||||||
}) {
|
}) {
|
||||||
|
// A single card has nothing to read it with: its synthesis is about everyday life.
|
||||||
|
const together = cards.length === 1 ? "A gyakorlatban" : "A lapok együtt";
|
||||||
return (
|
return (
|
||||||
<article className="tarot-result">
|
<article className="tarot-result">
|
||||||
<header className="tarot-result-head">
|
<header className="tarot-result-head">
|
||||||
@@ -51,8 +53,8 @@ export function TarotResult({
|
|||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
{content.synthesis && (
|
{content.synthesis && (
|
||||||
<section className="tarot-synthesis" aria-label="A lapok együtt">
|
<section className="tarot-synthesis" aria-label={together}>
|
||||||
<h3>A lapok együtt</h3>
|
<h3>{together}</h3>
|
||||||
<Paragraphs text={content.synthesis} />
|
<Paragraphs text={content.synthesis} />
|
||||||
</section>
|
</section>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user