Giter Club home page Giter Club logo

Comments (4)

walhajri avatar walhajri commented on August 10, 2024 1

Yes, it works!!

Thank you

from voltaire.

BamaCoder avatar BamaCoder commented on August 10, 2024

Could this code here be used in place of your existing for loop in ExportIndex.js? It should fix the issue provided there are no bugs. The only problem that I can see is that it will output a page break on the first execution but that can be fixed easily. Sadly can't test because I have had a ton of trouble trying to replicate the configure and set up the project locally (probably because Windows).

var curChar = "";
var curHeader = "";
for (let item in tmpList) {
    var curTitle = tmpList[item].title.value.trim();
    if (typeof curTitle == 'string') {
       curChar = curTitle.at(0).toLowerCase();
       if(!(curChar.match(/[a-z]/i)))  curChar = "#"; // Sets header to '#' if character is not a through z
       if (curChar !== curHeader) {
          curHeader = curChar;
          tmpList2.push({
	     title: {__html: "{{pagebreak}}<center><span class='dex-heading'>" + curHeader + curHeader.toUpperCase() + "</span></center>"},
             description: "",
	     page: "",
	     book: ""
	  });
       }
          tmpList2.push({
             title: {__html: tmpList[item].title.value},
             description: tmpList[item].description.value,
             page: "[b" + tmpList[item].book.value + "/p" + tmpList[item].page.value +"]",
             book: tmpList[item].book.value
          });
    }       
}    

from voltaire.

walhajri avatar walhajri commented on August 10, 2024

I am having the same issue I tried to create an entry for the letter 'i' alone but no luck...

I think I gonna do it manually :)

2019-10-16_16-33-05

from voltaire.

0sm0s1z avatar 0sm0s1z commented on August 10, 2024

I am having the same issue I tried to create an entry for the letter 'i' alone but no luck...

I think I gonna do it manually :)

2019-10-16_16-33-05

Actually my guess is that you're missing the letters G and H. Let me know if that helps! Thanks for using the tool and good luck on your exam!

from voltaire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.