-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To do: whitelist additional keys for translation #28
Comments
Hi! You can make a first pass at this with the simple rule "is it
|
@jmatsushita Yep, sounds good! I'll start working on this now. |
@jmatsushita I'm working through whitelisting keys on the tx_md2jsonKV initial conversion and running into greater complexity than we've dealt with before (as expected). I'm adapting the pre-tx-push.jq to bring in keys and subkeys dynamically. As part of this, I've realised that several of the files have multiple translatable fields within subkeys where this script only allows for the title fields within subkeys to be translated. As an example, see the "item" and "description" fields in footer.md. Currently, the "title" fields within each subkey are entered into JSON KV as FILENAME.MD---subkey---LINK or FILENAME.MD---subkey---STATUS or FILENAME.MD---subkey---ITERATOR. In the above example, if the script is modified to allow for several translatable fields within every subkey, "description" and "item" would end up with the same name: FILENAME.MD---subkey---LINK. Of course, an easy fix for this is to just add the name of the key to the end of JSON KV, such that FILENAME.MD---subkey---LINK---KEYNAME. However, I want to raise this in relation to #26 . Thinking about creating a numeric indicator that is applied both in .json.orig and in .json.tmp (here, applying this key to our discussion of translation keys) would reduce potential complexity of json KV key names significantly. What do you think? Relevant to iilab/contentascode#3 |
I think it would be good to keep meaningful and readable intermediate key names that help us troubleshoot the pipeline, so I would add the name of the subkey at the end as well as a numeric indicator for the order. Can we make the separator just |
Hey @jmatsushita ah I misread this the first time (hence the deleted comment). I think my terms are a bit confused, so I'm still a bit unclear on what you mean with the naming convention.. Could you give an example using this case? Current convention would have this as |
…itelist greatly exapanded. known (and working on) bugs related to: iterator assignment, depth of json, image:src handling. relevant to PanicInitiative#28, iilab/contentascode#3
…ment for retaining correct order on reassembly PanicInitiative#28 PanicInitiative#26 iilab/contentascode#3
…updates to tx_jsonKV2md.py and tx_md2jsonKV.py and corresponding files for PanicInitiative#28. YAML keys need to be removed but YAML frontmatter is now ordered for PanicInitiative#26. Relevant to iilab/contentascode#3
…, closing issues PanicInitiative#26 and PanicInitiative#28 . Relevant to iilab/contentascode#3
…x_jsonKV2md.py PanicInitiative#26 PanicInitiative#28 illab/contentascode#3
What is the strategy for whitelisting additional keys in both the md-to-jsonKV and jsonKV-to-md process? I wasn't sure when/how to go through this... @jmatsushita, Would you like to review the existing front-matter first, or if there's a way for me to review its appropriateness?
Relevant to iilab/contentascode#3
The text was updated successfully, but these errors were encountered: