Translating¶
Penguins and dogs cannot converse with each other.
They want to converse with each other.
That's why they made a penguin translate machine.
Why do dogs want to talk. Aren't they weird?
You have never heard of unity in your entire life.
How are you going to work together with your friends1?
Basics¶
The penguin translate machine has a translate_from, and a translate_to.
Translate from is the one that came first,
and translate to is the one you want.
Penguin
I thought I fell,
Ante is so high,
One stopping burger,
A burger?
It's a sandwich.
A sandwich?
It's 2 bread top and bottom with things in the middle.
Bread?
Good penguin food.
The above may be controversial, but who cares?
Lie all night.
Ooowouh, ooowouh!
When, I translate from,
I get the language it was.
If a dog speaks dog,
A dog speaks dog?
It's common knowledge.
Did you get sweesh swashed?
Dog is that language,
If it gets translated,
Into a penguin-understandable thing,
It is translated to.
To what?
To your brain.
I'm not that smart in maths2. What did you say?
I said it went to your brain.
Intense jazz plays
For example,
If you have a dog that says "woof woof",
and you have a penguin that says "buaak buaak",
you may be interested in this.
With inverse and back¶
Penguins can make letters mapped to their counterparts. For example:
will say:
This is because A -> Z, B -> Y, and so on.
What does it mean?
For example,
The first letter of the alphabet is A, and the last is Y.
The second letter of the alphabet is B, and the second last is V.
Wait...
I have waited long and there has been nothing.
A rhetorical question is a question that doesn't want an answer.
Making units¶
Automatically, your translate_to is by letter.
If you want to stitch up your letters,
that's called a word according to penguins.
translate_to can be: ["banana", "horse", "penguin"] and it will replace the whole word.
How it works¶
When making a new translating machine¶
- At PengTranslate, a penguin goes to the Translate Factory™.
- They take your
translate_toandtranslate_from. - They do important checks.
- Check if your
translate_tois anything.- If not:
- Go to PengSymbol
- Get alphanumerics.
- Check if your
translate_tois a number.- If so:
- String it.
- Check if your
translate_tois a string.- If so:
- List it.
- Check if your
translate_fromis anything.- If not:
- Go to PengSymbol
- Get alphanumerics.
- Check everything else.
- Stich everything up with PengIterable's
list_combineintotranslate_key.
- Check if your
When translating a text¶
- Take the text, and turn it into a list.
- Make a loop for each letter in the text.
- Make that letter into
translate_key's letter corresponding to that key's letter. - If the letter corresponding to that key is not found: continue.
- Make that letter into
- Return the text joined.