chrishokamp / handycat Goto Github PK
View Code? Open in Web Editor NEWthe flexible CAT tool
License: Other
the flexible CAT tool
License: Other
/app/scripts/services/xliffParser.js
Getting 'target_node' is not defined, I assume its supposed to be 'targetNode'
In this block
// append to specific transunit node
var transUnit = this.getTransunit(xmlDoc, tuid);
transUnit.appendChild(target_node);
From the function
// TODO: test these functions
createNewMrkTarget: function (xmlDoc, seg, newValue, targetLang) {
var segid = this.getSegId(seg);
var tuid = this.getTransUnitId(seg);
// create new mrk/target node
var mrkTarget = xmlDoc.createElement('mrk');
mrkTarget.setAttribute('mid', segid);
mrkTarget.setAttribute('mtype', 'seg');
mrkTarget.textContent = newValue;
var targetNode = this.getTarget(xmlDoc, seg);
if (!targetNode) {
// There is no previous translation for this transunit
// create new target node
targetNode = xmlDoc.createElement('target');
targetNode.setAttribute('xml:lang', targetLang);
// append to specific transunit node
var transUnit = this.getTransunit(xmlDoc, tuid);
transUnit.appendChild(target_node);
}
// append mrk_target to target node
targetNode.appendChild(mrkTarget);
return mrkTarget;
},
debug why the cheatsheet shows multiple copies of the same shortcut
right now it's confusing, especially if the segment order is not purely ascending
I use WSL and get the follow error:
root@ee4a310cb48f:/handycat# npm install
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
[email protected] postinstall /handycat/node_modules/gifsicle
node index.js
internal/validators.js:125
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
at validateString (internal/validators.js:125:11)
at Object.basename (path.js:1289:5)
at /handycat/node_modules/download/index.js:35:43
at each (/handycat/node_modules/each-async/each-async.js:63:4)
at module.exports (/handycat/node_modules/download/index.js:33:5)
at /handycat/node_modules/bin-wrapper/index.js:108:20
at /handycat/node_modules/bin-wrapper/index.js:141:24
at /handycat/node_modules/bin-check/index.js:30:20
at /handycat/node_modules/executable/index.js:39:20
at FSReqWrap.oncomplete (fs.js:153:21)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] requires a peer of requirejs@^2.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-10T06_20_14_999Z-debug.log
right now the segment only activates if you click in the target area
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.