Skip to content
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

Branch with several improvements #7

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Commits on Mar 20, 2024

  1. changed input argument infile to accept multiple files; outfile to op…

    …tional argument; if there is no outfile, the header of .ib file is hexdumped for all infiles
    sdbbs committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    f0f917e View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. added code in dump_header to extract assumed entry heading, and to co…

    …unt its occurences in file
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    111401d View commit details
    Browse the repository at this point in the history
  2. isolated related code into analyze_file(), which populates a list of …

    …IbFileData objects; added --hexdump and --print-analysis printout options
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    6905ddc View commit details
    Browse the repository at this point in the history
  3. more printouts; added parse_file_entries which indeed does parse some…

    … of the actual files
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    6239472 View commit details
    Browse the repository at this point in the history
  4. better printouts, fix for not taking the last chunk of b_entry into a…

    …ccount; now for some phonebooks, header declared number of entries matches number of parsed entries
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    2640fa9 View commit details
    Browse the repository at this point in the history
  5. code finally started parsing 0xBC, 0x00 entry headings - cannot do th…

    …e 16-byte ones, phone also not parsed correctly, however name is
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    f0f36fc View commit details
    Browse the repository at this point in the history
  6. found the right offset for 0xBC, 0x00 entry headings, now they get pa…

    …rsed in full (apart from those 16 bytes in size)
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0cbd89a View commit details
    Browse the repository at this point in the history
  7. rearranged code, so parse_file_entries is now called by analyze_file …

    …(and there is no need for a "second pass"); also changes in the verbose printouts, so they are easier to control in this case
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    ce2f785 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c40f76b View commit details
    Browse the repository at this point in the history
  9. added class IPBEntry, and global merged_ipb_entries and code to popul…

    …ate it (which is not quite right) in parse_file_entries()
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e6f28f3 View commit details
    Browse the repository at this point in the history
  10. fix for IPBEntry class, so it does not keep overwriting its instance;…

    … merged_ipb_entries populating seems to work now
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    3fd84d1 View commit details
    Browse the repository at this point in the history
  11. help text via RawDescriptionHelpFormatter; reorganized code so analys…

    …is pass and report is done regardless; added --outjson which writes out .json file
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    5142739 View commit details
    Browse the repository at this point in the history
  12. added IPBEntry.eref pointing to Entry and code to ignore it for json …

    …output; sort of merged_ipb_entries.sort case insensitive; removal of items with empty name/phone fields; and warnings for duplicate names, and duplicate phones, separately
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    14e363a View commit details
    Browse the repository at this point in the history
  13. added --injson, and handling in code if it is active; check for dupli…

    …cate phone numbers now looks up substring (if string length of phone number > 6)
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    6fe75c0 View commit details
    Browse the repository at this point in the history
  14. added parsing of extra1 field - not sure what it is, but it is part o…

    …f the name, and using it in intermediate name - now fewer name duplicates are detected
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    663a7f0 View commit details
    Browse the repository at this point in the history
  15. added vcard() method to IPBEntry, and added code to handle output to …

    ….vcf --outfile; works with --injson or with regular .ib file parsing
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    de5b9c7 View commit details
    Browse the repository at this point in the history
  16. some examples in help text; fix printout bug; modified vcard output t…

    …o match the format accepted by Nokia 215 4G - confirmed it works; program done for now
    sdbbs committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    f74057a View commit details
    Browse the repository at this point in the history