Skip to content

Commit

Permalink
HXL-CPLP/forum#58, hapi-t9n-alpha (#13), mvp-l10n-schemas (#7): enfim…
Browse files Browse the repository at this point in the history
…. aposentado /por/ (por-Latn)& /eng/ (eng-Latn); rascunho de /spa-Latn/
  • Loading branch information
fititnt committed Jun 11, 2021
1 parent 27b41a4 commit 8e5b26d
Show file tree
Hide file tree
Showing 11 changed files with 133 additions and 313 deletions.
16 changes: 10 additions & 6 deletions _includes/caput-ltr.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
<form method="GET" dir="auto"
action="https://github.com/HXL-CPLP/Auxilium-Humanitarium-API/search?q=">
<input class="form-control" type="text" name="q"
placeholder="{% _🗣️ Hapi_quaerere_nomen 🗣️_ %}"
aria-label="{% _🗣️ Hapi_quaerere_nomen 🗣️_ %}">
placeholder="{% _🗣️ 🔎🔕🔍 Hapi_quaerere_nomen 🔎🔕🔍 🗣️_ %}"
aria-label="{% _🗣️ 🔎🔕🔍 Hapi_quaerere_nomen 🔎🔕🔍 🗣️_ %}">
</form>

<!--
Expand All @@ -110,11 +110,15 @@
</svg>
</a>
<ul class="dropdown-menu" aria-labelledby="dropdown09">
<li><a class="dropdown-item" href="/eng/">
English (Latin Script)</a>
<li>
<a class="dropdown-item" href="/eng-Latn/">
{% _🗣️ 📝eng-Latn📝 L10N_ego_summarius 📝eng-Latn📝 🗣️_ %}
</a>
</li>
<li><a class="dropdown-item" href="/por/">
Português (Alfabeto Latino)</a>
<li>
<a class="dropdown-item" href="/por-Latn/">
{% _🗣️ 📝por-Latn📝 L10N_ego_summarius 📝por-Latn📝 🗣️_ %}
</a>
</li>
</ul>
</li>
Expand Down
4 changes: 2 additions & 2 deletions _includes/index-corporeum-mul-Zyyy.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h2 id="schemam" lang="la">Schemam</h2>

</article>
<article>
<h2 id="tm" lang="la">Trānslātiōnem memoriam</h2>
<h2 id="translationem-memoriam" lang="la">Trānslātiōnem memoriam</h2>
<div class="alert alert-info" role="alert">
<p>{% _🗣️ 📝lat-Latn📝 opus_in_progressu_emoji_nomen 📝lat-Latn📝 🗣️_ %}</p>
<p>{% _🗣️ 📝eng-Latn📝 opus_in_progressu_emoji_nomen 📝eng-Latn📝 🗣️_ %}</p>
Expand Down Expand Up @@ -111,7 +111,7 @@ <h3 id="agnitionem-communitatem">
</aside>

<section>
<h2>{% _🗣️ licentiam_nomen 🗣️_ %}</h2>
<h2 id="licentiam">{% _🗣️ licentiam_nomen 🗣️_ %}</h2>
<a href="https://unlicense.org/">
<img src="https://i.creativecommons.org/p/zero/1.0/88x31.png"
alt="{% _🗣️ dominium_publicum_nomen 🗣️_ %}">
Expand Down
4 changes: 2 additions & 2 deletions _includes/index-corporeum.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h2>{% _🗣️ schemam_nomen 🗣️_ %}</h2>

</article>
<article>
<h2>{% _🗣️ translationem_memoriam_nomen 🗣️_ %}</h2>
<h2 id="translationem-memoriam">{% _🗣️ translationem_memoriam_nomen 🗣️_ %}</h2>
<div class="alert alert-info" role="alert">
<p>{% _🗣️ opus_in_progressu_emoji_nomen 🗣️_ %}</p>
</div>
Expand Down Expand Up @@ -139,7 +139,7 @@ <h3 id="agnitionem-communitatem">
</aside>

<section>
<h2>{% _🗣️ licentiam_nomen 🗣️_ %}</h2>
<h2 id="licentiam">{% _🗣️ licentiam_nomen 🗣️_ %}</h2>
<a href="https://unlicense.org/">
<img src="https://i.creativecommons.org/p/zero/1.0/88x31.png"
alt="{% _🗣️ dominium_publicum_nomen 🗣️_ %}">
Expand Down
4 changes: 2 additions & 2 deletions _layouts/defallo-ltr.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

<header class="container">
<h1>{{ page.titulum | default: page.title }}</h1>
<p>{{ page.description | markdownify }}</p>
{{ page.description | markdownify }}
{% if page.speciale_html %}
{{ page.speciale_html | liquify }}
{% endif %}
{% if page.toc %}
<hr>
<nav id="mensam-de-contentis-in-eode">
<h2 style="font-size: 1.2em;" lang="la">
<h2 style="font-size: 1.2em;">
{% _🗣️ mensam_de_contentis_in_eodem_nomen 🗣️_ %}
</h2>
{{ content | toc_only }}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/defallo-mul-Zyyy.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<body>
<header class="container">
<h1>{{ page.titulum | default: page.title }}</h1>
<p>{{ page.description | markdownify }}</p>
{{ page.description | markdownify }}
{% if page.speciale_html %}
{{ page.speciale_html | liquify }}
{% endif %}
Expand Down
90 changes: 69 additions & 21 deletions _plugins/jekyll_hapi_translationem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AuxiliumTagProcessum
:paginam_contextum, :referens,
:contextum_archivum_extensionem, :contextum_linguam,
:contextum_ego, :paratum_est, :referens_praeiudico,
:alternandum_linguam
:alternandum_linguam, :textum_solum_est

FONTEM_LINGUAM_EMOJI = ['👁️'].freeze
OBJECTIVUM_LINGUAM_EMOJI = ['📝'].freeze
Expand Down Expand Up @@ -128,6 +128,7 @@ def explanandum_resultatum # rubocop:disable Metrics/MethodLength,)
'fontem_textum' => @textum,
'venandum_insectum_est' => @venandum_insectum_est,
'sos_est' => @sos_est,
'textum_solum_est' => @textum_solum_est,
'contextum_url' => @paginam_contextum['url'],
'paratum_est' => if @fontem_linguam.nil?
false
Expand All @@ -153,6 +154,7 @@ def investigationem_contextum(contextum)
@referens = contextum['site']['data']['referens']
@referens_praeiudico = contextum['site']['data']['referens']['praeiudico']
@paginam_contextum = contextum['page']
@textum_solum_est = quod_textum_solum_est?
@contextum_linguam = if contextum['ego_linguam']
contextum['ego_linguam']
elsif contextum['page']['linguam']
Expand Down Expand Up @@ -374,19 +376,21 @@ def de_markdown(text)
Kramdown::Document.new(text).to_html.to_s
end

# @deprecated use farmatum_alternandum_neo
# TODO: _[por] Terminar a farmatum_alternandum, de modo que exiba
# informações também de depuração
# [por]_
#
# Trivia:
# - 'fōrmātum', https://en.wiktionary.org/wiki/formatus#Latin
# - 'alternandum', https://en.wiktionary.org/wiki/alternandus#Latin
def farmatum_alternandum(contextum, trns_codicem, trns_resultatum, _trns_resultatum_linguam)
def farmatum_alternandum(
contextum, trns_codicem, trns_resultatum, _trns_resultatum_linguam, textum_solum_est = false)
html_est = contextum['page']['translationem_modum']
linguam = contextum['page']['linguam']
debug_est = contextum['page']['translationem_debug']
# print 'oooi'
if html_est == 'html'
if html_est == 'html' && !textum_solum_est
return "<span data-l10n-c='#{trns_codicem}' data-l10n-linguam='#{linguam}'" \
" class='incognitum-phrasim'>#{trns_resultatum}</span>"
end
Expand All @@ -413,6 +417,42 @@ def farmatum_praefectum(contextum, trns_codicem, trns_resultatum)
trns_resultatum
end

# TODO: _[por] Terminar de portar funcionalidades de farmatum_alternandum [por]_
# Trivia:
# - 'fōrmātum', https://en.wiktionary.org/wiki/formatus#Latin
# - 'alternandum', https://en.wiktionary.org/wiki/alternandus#Latin
def farmatum_alternandum_neo(rem)
puts "\n\n\t[🔎🆘🔍 #{self.class.name}] #{__LINE__} [#{rem.inspect}]" if rem.est_sos?
# return rem.objectivum_textum + 'so texto' if rem.est_textum_solum_est?
return rem.objectivum_textum if rem.est_textum_solum_est? && rem.objectivum_textum
return rem.fontem_textum if rem.est_textum_solum_est?

# attrs = {
# 'lang' => rem.fontem_linguam.bcp47,
# 'data-l10n-fontem-linguam' => rem.fontem_linguam.linguam,
# 'data-l10n-objectivum-linguam' => rem.objectivum_linguam.linguam,
# }

if rem.est_html?
attrs_str = Utilitatem.quod_html_attributum_markup_nunc?(
{
'lang' => rem.fontem_linguam.bcp47,
'data-l10n-fontem-linguam' => rem.fontem_linguam.linguam,
'data-l10n-objectivum-linguam' => rem.objectivum_linguam.linguam,
'class' => 'incognitum-phrasim'
}
)

return "<span #{attrs_str}>#{rem.fontem_textum}</span>"
end

# puts "\n\n\t[🔎🆘🔍 #{self.class.name}] #{__LINE__} [#{rem.inspect}]" if rem.est_sos?
# _[eng] If not HTML, then likely to be JSON, XML or CSV. If this is
# an error, use 🔎🆘🔍 on the tag
# _[eng]
rem.objectivum_textum
end

# Trivia:
# - 'fōrmātum', https://en.wiktionary.org/wiki/formatus#Latin
# - 'praefectum', https://en.wiktionary.org/wiki/praefectus#Latin
Expand Down Expand Up @@ -799,8 +839,11 @@ def render(context) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength,Metri
# puts "\n\n\t[🔎🐛 #{self.class.name}:#{__LINE__}] [#{rem.inspect}]"

if rem.paratum_est
return Translationem.farmatum_praefectum(
context, rem.fontem_textum, rem.fontem_textum
# return Translationem.farmatum_praefectum(
# context, rem.fontem_textum, rem.fontem_textum
# )
return Translationem.farmatum_praefectum_neo(
rem
)
end

Expand Down Expand Up @@ -828,11 +871,28 @@ def render(context) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength,Metri
# return Translationem.farmatum_praefectum_neo(
# rem
# )
return Translationem.farmatum_praefectum(
context, rem.fontem_textum, l10nval
# return Translationem.farmatum_praefectum(
# context, rem.fontem_textum, l10nval
# )
return Translationem.farmatum_praefectum_neo(
rem
)
end

l10nval_por = Translationem.translationem_memoriam_rememorandum(
context, rem.fontem_textum, 'por-Latn'
)
if l10nval_por != false
rem.alternandum_textum = l10nval_por
rem.alternandum_linguam = 'por-Latn'
# puts rem.inspect if rem.est_textum_solum_est?
return Translationem.farmatum_alternandum(
context, rem.fontem_textum, l10nval_por,
'por-Latn', rem.est_textum_solum_est?
)
# return Translationem.farmatum_alternandum_neo(rem)
end

l10nval_eng = Translationem.translationem_memoriam_rememorandum(
context, rem.fontem_textum, 'eng-Latn'
)
Expand All @@ -842,19 +902,7 @@ def render(context) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength,Metri

return Translationem.farmatum_alternandum(
context, rem.fontem_textum, l10nval_eng,
'eng-Latn'
)
end

l10nval_por = Translationem.translationem_memoriam_rememorandum(
context, rem.fontem_textum, 'por-Latn'
)
if l10nval_por != false
rem.alternandum_textum = l10nval_por
rem.alternandum_linguam = 'por-Latn'
return Translationem.farmatum_alternandum(
context, rem.fontem_textum, l10nval_por,
'por-Latn'
'eng-Latn', rem.est_textum_solum_est?
)
end

Expand All @@ -866,7 +914,7 @@ def render(context) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength,Metri
rem.alternandum_linguam = 'spa-Latn'
return Translationem.farmatum_alternandum(
context, rem.fontem_textum, l10nval_spa,
'spa-Latn'
'spa-Latn', rem.est_textum_solum_est?
)
end

Expand Down
137 changes: 0 additions & 137 deletions documentum/eng/index.md

This file was deleted.

Loading

0 comments on commit 8e5b26d

Please sign in to comment.