Python Forum
recording a translation table into a file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
recording a translation table into a file
#1
Hi

I'm writing a script to collate ancient greek. Until now, I've been able to create a dictionnary from the Unicode blocks of characters and use it to get a translation table with the maketrans method. I'm wondering whether it is possible to record (with pickle) this table into a file or if I have to record the dictionnary.

Note: Don't bother to reply to this post. I've just seen that the translation table's type is dict. Anyway, I'll record the dictionnary and not the translation table, to be able to modify some entries if necessary.

Arbiel
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Translation AliceCu 2 624 May-16-2023, 09:05 PM
Last Post: deanhystad
  Video recording with Raspberry Pi - What´s wrong with my python code? Montezuma1502 3 1,180 Feb-24-2023, 06:14 PM
Last Post: deanhystad
  Use module docx to get text from a file with a table Pedroski55 8 5,806 Aug-30-2022, 10:52 PM
Last Post: Pedroski55
Smile How we can prevent screen recording murad_ali 3 1,761 Jul-29-2022, 10:29 AM
Last Post: DeaD_EyE
  How to decrease latency while recording streaming video. unicorn2019 0 1,232 Nov-15-2021, 02:12 PM
Last Post: unicorn2019
  Translation API snippyro 0 1,231 Nov-02-2021, 01:09 AM
Last Post: snippyro
  Help with storing temp data for each day then recording min/max in app. trthskr4 3 2,359 Sep-10-2021, 10:51 PM
Last Post: trthskr4
  [GoogleTrans] How can i print my translation word ?... JamieVanCadsand 7 11,628 Aug-29-2021, 12:01 PM
Last Post: Melcu54
  Split recording with Picamera EvanS1 0 1,881 Jun-19-2021, 12:26 PM
Last Post: EvanS1
  Yahoo_fin, Pandas: how to convert data table structure in csv file detlefschmitt 14 7,559 Feb-15-2021, 12:58 PM
Last Post: detlefschmitt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020