dhammacakka / pm12e

2 stars 0 forks source link

Need to change the dump or new command "formatteddump" #72

Closed bksubhuti closed 2 months ago

bksubhuti commented 2 months ago

Someone told me that the peu is not formatted nicely. That is true. We should fix the formatting and have a formatted sql dump. Normally I'm doing a lot of work to get the import to work. It would be good if we had the formatted dump in a similar table like the dpd. Bonus: but maybe later, if we could format the numbered internal definitions to have a
before each number. It might not be consistent enough for this programmatically.

Needs to work with the extension importer.. quotes need to be padded '' (doubled single quotes) and all should be on one single line per statement to import. Sql code.

ñāṇasampayuttayogena [Ñāṇasampayutta+yoga] (pu) CL=7 Compared/Related with Ñāṇasampayuta mind. See - Ñāṇasampayutta-(2). (Ñāṇasampayuta mind means mind/consciousness which is related/compared with wisdom).

image image

Possible code output maybe no border

<table border="0" cellpadding="5" cellspacing="0">
  <tr>
    <th style="vertical-align: top;">Word</th>
    <td>ñāṇasampayuttayogena</td>
  </tr>
  <tr>
    <th style="vertical-align: top;">Breakup</th>
    <td>[Ñāṇasampayutta + yoga] (pu)</td>
  </tr>
  <tr>
    <th style="vertical-align: top;">Confidence</th>
    <td>7</td>
  </tr>
  <tr>
    <th style="vertical-align: top;">Definition</th>
    <td>Compared/Related with Ñāṇasampayuta mind. See - Ñāṇasampayutta-(2). (Ñāṇasampayuta mind means mind/consciousness which is related/compared with wisdom).</td>
  </tr>
</table>
bksubhuti commented 2 months ago

image