imessagedb.generate_text¶
Module Contents¶
Classes¶
Creates a text file (or string) from a Messages list |
- class imessagedb.generate_text.TextOutput(database, me: str, messages, output_file=None)[source]¶
Creates a text file (or string) from a Messages list
…
There are a number of options in the configuration file that affect how the HTML is created. In the DISPLAY section, the following impact the output:
- me = Me :
The name to put for your part of the conversation. It defaults to ‘Me’.
- use text color = True :
If False, don’t color the text at all
- text color list = red, green, yellow, blue, magenta, cyan
The color for the name in text output. No color is used if ‘use text color’ is false. The color can only be one of the following options:
black, red, green, yellow, blue, magenta, cyan, white, light_grey, dark_grey, light_red, light_green, light_yellow, light_blue, light_magenta, light_cyan
The way that the color selection works is that it will use the first color on the color list for the first person in the conversation, the second for the second, third for the third, etc. If there are more participants than colors, it will wrap around to the first color.
- reply text color = light_grey :
The color for the reply text