Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.es.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">

<img src="og-en.png" alt="HowToLiveBetter — trade the least money, time, and effort for the most lifespan, money, and personal freedom" width="820">
<img src="og-es.png" alt="HowToLiveBetter — cambia menos dinero, tiempo y esfuerzo por más vida, dinero y libertad personal" width="820">

# HowToLiveBetter: Guía de la vida al mejor precio — traducción española

Expand Down
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -805,12 +805,12 @@ <h1>Пособие по выгодной жизни</h1>
continue;
}
if (entry){
if ((m = /^- (?:成本|Стоимость|Cost)[::](.*)$/.exec(line))) entry.cost = m[1];
else if ((m = /^- (?:说人话|Простыми словами|In plain terms)[::](.*)$/.exec(line))) { entry.human = m[1]; if (T().cap) entry.human = entry.human.replace(/^\s*(.)/, (c)=>c.toUpperCase()); }
else if ((m = /^- (?:收益|Эффект|Benefit)[::](.*)$/.exec(line))) { entry.gain = m[1]; if (T().cap) entry.gain = entry.gain.replace(/^\s*(.)/, (c)=>c.toUpperCase()); }
else if ((m = /^- (?:证据等级|Уровень доказательности|Evidence grade)[::]\s*([ABC])/.exec(line))) entry.grade = m[1];
else if ((m = /^- (?:来源|Источники|Sources)[::]?(.*)$/.exec(line))) entry.src = m[1];
else if ((m = /^- (?:备注|Примечания|Notes)[::](.*)$/.exec(line))) { entry.note = m[1]; if (T().cap) entry.note = entry.note.replace(/^\s*(.)/, (c)=>c.toUpperCase()); }
if ((m = /^- (?:成本|Стоимость|Costo|Cost)[::](.*)$/.exec(line))) entry.cost = m[1];
else if ((m = /^- (?:说人话|Простыми словами|En términos sencillos|In plain terms)[::](.*)$/.exec(line))) { entry.human = m[1]; if (T().cap) entry.human = entry.human.replace(/^\s*(.)/, (c)=>c.toUpperCase()); }
else if ((m = /^- (?:收益|Эффект|Beneficio|Benefit)[::](.*)$/.exec(line))) { entry.gain = m[1]; if (T().cap) entry.gain = entry.gain.replace(/^\s*(.)/, (c)=>c.toUpperCase()); }
else if ((m = /^- (?:证据等级|Уровень доказательности|Nivel de evidencia|Evidence grade)[::]\s*([ABC])/.exec(line))) entry.grade = m[1];
else if ((m = /^- (?:来源|Источники|Fuentes|Sources)[::]?(.*)$/.exec(line))) entry.src = m[1];
else if ((m = /^- (?:备注|Примечания|Notas|Notes)[::](.*)$/.exec(line))) { entry.note = m[1]; if (T().cap) entry.note = entry.note.replace(/^\s*(.)/, (c)=>c.toUpperCase()); }
continue;
}
if (line && !sec.intro && !line.startsWith('>')) sec.intro = line;
Expand Down
Binary file added og-es.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions tools/og-es.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- Source for og-es.png (README.es.md banner). Translation of tools/og-ru.html; same numbers: 528 consejos, 347 grade A, 1066 links.
Re-shoot (macOS):
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --disable-gpu \
--hide-scrollbars --force-device-scale-factor=1 --window-size=1200,630 \
--screenshot=og-es.png "file://$PWD/tools/og-es.html" -->
<!doctype html><meta charset="utf-8">
<style>
*{margin:0;padding:0;box-sizing:border-box}
body{
width:1200px;height:630px;overflow:hidden;background:#ffffff;
font-family:Georgia,"Times New Roman","Noto Serif",serif;
color:#111111;
}
.in{position:relative;padding:72px 84px;height:100%;display:flex;flex-direction:column}
.brand{font-size:20px;line-height:1.4;color:#666666;font-weight:400;letter-spacing:.01em}
h1{margin-top:44px;font-size:52px;line-height:1.22;letter-spacing:-.015em;color:#111111;font-weight:700}
.topics{margin-top:28px;font-size:22px;line-height:1.55;color:#333333;max-width:1030px}
.stats{
margin-top:auto;padding-top:28px;
display:flex;flex-wrap:wrap;align-items:baseline;gap:12px 40px;
font-size:18px;line-height:1.45;color:#666666;
}
.stats b{color:#111111;font-weight:700}
</style>
<div class="in">
<div class="brand">HowToLiveBetter: Guía de la vida al mejor precio</div>
<h1>Menos tiempo, esfuerzo y gasto —<br>más vida, libertad y dinero</h1>
<p class="topics">Longevidad | Primeros auxilios | Dinero | Leyes | Familia | Habilidades</p>
<div class="stats">
<span><b>528</b> consejos</span>
<span>Evidencia de grado A — <b>347</b></span>
<span><b>1066</b> enlaces a fuentes primarias</span>
<span>Filtro por relación valor-precio</span>
</div>
</div>
Loading