Zeilenausrichtung

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tg74
    Visitor
    • Jul 2018
    • 3

    Zeilenausrichtung

    Hallo,

    ich möchte die Zeilenausrichtung von zwei Textdateienen anpassen.

    Die Zeilen sollen nur zugeordnet werden wenn die ersten 18 Zeichen übereinstimmen. Bei dem restlichen Text in der Zeile sollen die Unterschiede normal angezeigt werden.

    z.B.

    Datei(links)
    1. 12345678@123@1234@abcd
    2. 12345678@123@2345@bcde
    3. 12345678@123@4567@cdef
    4. 12345678@123@7890@defg

    Datei(rechts)
    1. 12345678@123@2345@abcd
    2. 12345678@123@4567@bcde
    3. 12345678@123@5678@fghi
    4. 12345678@123@7890@ghij

    gewünschte Zuordnung

    Zeile 1: 1 - /
    Zeile 2: 2 - 1
    Zeile 3: 3 - 2
    Zeile 4: / - 3
    Zeile 5: 4 - 4

    Meine Versuche über die Dateivergleichsregeln | Zeilengewichtung waren bisher nicht erfolgreich.

    Danke

    tg74
  • Aaron
    Team Scooter
    • Oct 2007
    • 15997

    #2
    Hello,

    Are you working in the Text Compare or the Table Compare?

    The Text Compare can define a grammar element for the first 18 characters, mark as Important, and Everything Else as Unimportant. Then in the Alignment Session Settings, set to Never Align Differences (which will then only align Important text, the defined important grammar).

    The Table Compare, you would define a Fixed Width column, and mark the first column as the Key.

    ===================

    Hallo,

    Verwendest Du den Textvergleich oder Tabellenvergleich?

    Im Textvergleich kann ein Grammatikelement für die ersten 18 Zeichen definiert werden und als wichtig für den Vergleich markiert werden; und alles andere als nicht wichtig. Im Dialog für Sitzungseinstellungen im Bereich Ausrichtung kann die Option "Unterschiede niemals aneinander ausrichten" eingestellt werden (was dann nur wichtigen Text, die definierte wichtige Grammatik, aneinander ausrichtet).

    Im Tabellenvergleich müsstest Du eine Spalte mit fester Breite definieren und die erste Spalte als Schlüsselspalte markieren.
    Last edited by Gunnar; 10-Jul-2018, 02:21 AM. Reason: ENG->GER translation
    Aaron P Scooter Software

    Comment

    • tg74
      Visitor
      • Jul 2018
      • 3

      #3
      Hi Aaron,

      works fine with BC4.
      My version is BC2.

      By tg74

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 15997

        #4
        Hello,

        For BC2, you can get something close to this in the File Viewer. In the Rules section, edit the Importance tab, and add an Unimportant definition that matches on 19 to end of line. In the Alignment tab, also enable Never Align mismatches. And on the main toolbar, make sure Ignore Unimportant Differences is disabled, so unimportant (19+) differences appear as Blue. How does this work for you?
        Aaron P Scooter Software

        Comment

        • tg74
          Visitor
          • Jul 2018
          • 3

          #5
          Hi Aaron,

          yes works fine. I'm still missing "And on the main toolbar...".

          Thank you

          tg74

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 15997

            #6
            Hello,

            It looks like a squiggly equal sign (also seen in the View menu -> Ignore Unimportant Differences) and also on the toolbar. Toggle off, so unimportant text differences are blue. If toggled on, those would be black/treated as equal.
            Aaron P Scooter Software

            Comment

            Working...