How to exclude the block code for translation from a text file

Here is only a snippet of the text file below,

In the following example code block, the IP ranges are different:

----
cluster_A::> network subnet show

IPspace: Default
Subnet Broadcast Avail/
Name Subnet Domain Gateway Total Ranges
--------- ---------------- --------- ------------ ------- ---------------
subnet1 192.168.2.0/24 Default 192.168.2.1 10/10 192.168.2.11-192.168.2.20

cluster_B::> network subnet show
IPspace: Default
Subnet Broadcast Avail/
Name Subnet Domain Gateway Total Ranges
--------- ---------------- --------- ------------ -------- ---------------
subnet1 192.168.2.0/24 Default 192.168.2.1 10/10 192.168.2.21-192.168.2.30
----

The code block between the start and end ---- need to be excluded for translation, how to do that in the regular expression delimited text filetype?

Parents Reply
  • It would be helpful to see more of the stuff you actually need to translate.  Maybe there is something you can hook onto to use as the rule for extraction and ignore everything else.

    I think you'd need to use the API and build a custom filetype to handle this based on specifically excluding the code block.

    Or maybe (and I hate to say it!!)... copy the content into MS Word and then use MS Word to set the hidden attribute for the stuff you don't want to translate and handle the file as a word file instead?

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children